You are here

Installer deleting "desktop.ini" file

4 posts / 0 new
Last post
passat
passat's picture
Offline
Last seen: 2 weeks 1 day ago
Joined: 2013-10-26 07:42
Installer deleting "desktop.ini" file

I'm using folder customization for faster folder visual location, so I dedicate "appicon.ico" to be folder icon for every "AppNamePortable" folder.
In that folder windows creates "desktop.ini" file with "hidden" and "system" attributes, but it is deleted by installer whenever I update application.
It is not deleted if in "installer.ini" is statement:

[FilesToPreserve]
File1=desktop.ini

But then I have to make my own installer for every update of every application and could not use update from platform.
Could it be possible, in some next release, to default installer not to delete files in "AppNamePortable" folder (I could not find any environment variable substitution for that folder).

Another problem is that missing environment variable named like ALLUSERDOCUMENS which would act like ALLUSERSAPPDATA but for Documents:
In Windows XP and 2000 it would be e.g. C:\Documents and Settings\All Users\Documents
and in Vista, 7, 8, 10 it would be e.g. C:\Users\Public\Documents

Some programs are using that folders to put there data which are available for all users, and I could not find way to backup/restore those folders.
Any solution or suggestion would be appreciated.

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Unlikely, possible with custom code

For the first question - It is unlikely that this will be added, as it is an extreme edge case that the majority of users do not require. With that said, John may choose to implement it.

For the second - In custom code, use the NSIS variable $DOCUMENTS in conjunction with SetShellVarContext

Wm ...
Offline
Last seen: 7 years 2 months ago
Joined: 2010-07-17 12:37
as a note regarding desktop.ini

as a note regarding desktop.ini

the are often regarded as noise in workplace situations, I have never found them worth preserving myself.

To the OP do you know what is actually in the files you want to keep? Take a look.

--
Wm

Wm

passat
passat's picture
Offline
Last seen: 2 weeks 1 day ago
Joined: 2013-10-26 07:42
Thanks for answer

Thanks for answer

Log in or register to post comments