This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 25 - Pages: 2 [ 1 2 | Next ] - Last Post: 31-Mar-2020 12:37 Last Post By: davidekholm Threads: [ Previous | Next ]
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Sample Portfolio removal problem
Posted: 30-Oct-2019 15:01
 
  Click to reply to this thread Reply
When launching jAlbum, the Sample Portfolio gets copied to My Albums. I don't want it there, so I delete it. But launching jAlbum again brings it back.

So, just delete it from C:\Program Files\jAlbum\samples? That produces a different problem. If the Sample Portfolio is missing, double-clicking any .jaskin file to install a skin produces a Windows installer error - it's looking for an msi file, presumably to "fix" the installation, and it's looking for it in a location that doesn't even exist, to wit, C:\Program Files\jAlbum AB.
RobM

Posts: 3,171
Registered: 4-Aug-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 15:08   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I recently 'lost' the Sample portfolio and got it back by force. David did say though that you cannot normally remove it, it should always be there. Maybe this should be feature request instead of a bug report.
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 15:25   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Perhaps. But this seems to be the resurrection of an old annoyance, one that I thought had gone away. I don't recall seeing Sample Portfolio in My Albums in a long time. I think it's only with jAlbum 19 that it has reappeared, and stubbornly refuses to go away.

Don't do me any "favors." ;)
davidekholm

Posts: 3,420
Registered: 18-Oct-2002
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 16:19   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I can only say that I haven't touched that code logic for years. I hate Microsoft Installer's default "repair" behavior. It can be switched off, but it's tedious to set up right. There are literally zillions of settings when setting up a .msi installer package. Can't you simply open that Sample Portfolio album and select "Remove from list"?
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 19:25   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I guess what's changed is the installer behavior. I don't think I've encountered that "repair" routine in years, even after changing things in the installed program. Either that, or I'm an old man, and I'm confused. ;)

Not a big deal. I just hope the misbehavior doesn't also kick in when doing something like replacing jalbum-core.jar with a beta version.
davidekholm

Posts: 3,420
Registered: 18-Oct-2002
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 19:26   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I'll review the installer settings again when building archives next time.
RobM

Posts: 3,171
Registered: 4-Aug-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 20:31   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
I guess what's changed is the installer behavior. I don't think I've encountered that "repair" routine in years, even after changing things in the installed program. Either that, or I'm an old man, and I'm confused. ;)
Um, I’m confused too, how does a Windows installer affect a Mac dmg?
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 20:52   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
Um, I’m confused too, how does a Windows installer affect a Mac dmg?

It doesn't. This is purely a Windows thing. On a Mac, you can, in fact, remove the Sample Portfolio both from My Albums and from the program directory, without any ill effects.
RobM

Posts: 3,171
Registered: 4-Aug-2006
Re: Sample Portfolio removal problem
Posted: 30-Oct-2019 20:58   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit wrote:
RobM wrote:
Um, I’m confused too, how does a Windows installer affect a Mac dmg?

It doesn't. This is purely a Windows thing. On a Mac, you can, in fact, remove the Sample Portfolio both from My Albums and from the program directory, without any ill effects.

I’m going for a lie down in a dark room ;)
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 05-Jan-2020 16:21   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
A modest proposal, something that I think would satisfy the more OCD users out there, who don't want a "sample" project cluttering up their own files....

Don't copy Sample Portfolio to the user's My Albums directory automatically. Instead, add an item to the File menu: Open Sample Portfolio. If the user chooses that, then copy it to My Albums (you wouldn't want to actually run the project from the program directory, because the user might want to tinker with it, and save changes). Then if the user deletes the project, the My Albums copy goes away, as expected, and it vanishes from the project list, also as expected.

What if the user opens the sample, modifies it, saves it, and then chooses File, Open Sample Portfolio again? Should it create a fresh copy from the program directory? Or should it first try to open it from My Albums? Probably the latter, though either behavior would be defensible.
davidekholm

Posts: 3,420
Registered: 18-Oct-2002
Re: Sample Portfolio removal problem
Posted: 06-Jan-2020 16:28   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
To get rid of the "Sample Portfolio" creation, do either of these steps:
1) Open and delete the "Sample Portfolio" project from within jAlbum
2) Close jAlbum
3) Locate and delete install dir\samples\Sample Portfolio

or

To get rid of the "Sample Portfolio" creation, do either of these steps:
1) Open and delete the "Sample Portfolio" project from within jAlbum
2) Close jAlbum
3) Locate and delete My Documents\My Albums\Sample Portfolio
4) Create an empty My Documents\My Albums\Sample Portfolio folder. This will prevent jAlbum from copying the install dir\samples\Sample Portfolio folder here
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 06-Jan-2020 16:35   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Attachment fail.png (9.3 KB)
If you delete the Sample Portfolio in a Windows installation, Windows regards the program as "damaged," and insists upon trying to repair it.

We've been down this road before. As I posted earlier, if you do this, then double-click on a .jaskin file, you get what you see in the attached screenshot. It then can't find the installation package, and you end up having to download and reinstall jAlbum from ground zero.

And simply leaving an empty Sample Portfolio folder in My Albums still means that there's an item in the list that some users will keep trying to get rid of. Then they end up right back where they started. Lather, rinse, repeat.
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 06-Jan-2020 16:41   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
BTW, this has come up again because of this thread: https://jalbum.net/forum/thread.jspa?threadID=55883

Another user who says, "I don't need this Sample Portfolio thing," and then is endlessly confused by the fact that it keeps coming back. He's on Windows. Deleting the program file copy is not a workable option because of the side effects of doing so.
davidekholm

Posts: 3,420
Registered: 18-Oct-2002
Re: Sample Portfolio removal problem
Posted: 06-Jan-2020 22:06   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Ok, I'll make an exception for the repair mechanism for the "samples" sub folder.
jGromit

Posts: 7,614
Registered: 31-Jan-2006
Re: Sample Portfolio removal problem
Posted: 06-Jan-2020 22:14   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
That still leaves users rummaging around in the program directory, which I think is never a good idea. Both Windows and macOS do their best to hide those files from the user, and Windows gets shirty about attempts to monkey with the files out there (various warnings).

That's why I suggested a different mechanism, one that lets the user do what an ordinary user would expect to be able to do, without ever having to go wandering around in the OS. It would also survive a reinstall or the installation of a new version of jAlbum. Otherwise, the Sample Portfolio would keep coming back - that's the kind of thing that annoys users. They just want to be able to delete the Sample Portfolio from My Albums, and have it stay deleted.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums