/build/static/layout/Breadcrumb_cap_w.png

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?

0 Comments   [ + ] Show comments

Answers (3)

Posted by: deranjer 14 years ago
Senior Yellow Belt
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.
Posted by: anonymous_9363 14 years ago
Red Belt
0
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
Senior Yellow Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ