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?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
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.
Answered 10/19/2010 by: deranjer
Senior Yellow Belt

Please log in to comment
0
Check out the Component table's msidbComponentAttributesPermanent value in the 'Attribute' column. This assumes that the INI is installed as a discrete component.
Answered 10/19/2010 by: VBScab
Red Belt

Please log in to comment
0
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.
Answered 10/19/2010 by: deranjer
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity