Keep .ini File through uninstall
I am having an issue with Winscp. I have all of the settings saved in an .ini file that is in Program Files\Winscp\Winscp.ini. I want this file to stay there through an uninstall. However, I have not figured out a way to accomplish this. I checked in the RemoveFile table and just for testing deleted everything in the RemoveFile table. However, everything is still removed on uninstall.
Is there a way to flag this file so the .msi uninstall or repair action does not replace or delete this file?
Is there a way to flag this file so the .msi uninstall or repair action does not replace or delete this file?
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
deranjer
14 years ago
Well fixed part of the issue. In AdminStudio there is an option in the component wizard to "make permanent". Now the .ini file itself stays, but I think since the ini file is built from the Inifile table full of ini file entries... the ini file is stripped of almost all the settings.. will look into further.
Posted by:
anonymous_9363
14 years ago
Check out the Component table's msidbComponentAttributesPermanent value in the 'Attribute' column. This assumes that the INI is installed as a discrete component.
Posted by:
deranjer
14 years ago
Well I did manage to figure it out. I removed almost all of the entries from the iniFile table except the ones that absolutely had to be there. Then almost all of the settings stayed in the inifile on uninstall. And it looks like the "Make permanent" option in AdminStudio did modify the msidbComponentAttributesPermanent value in the msi. Thank you VBScab, its always nice to know how to do it directly from the msi.. much faster.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.