PDA

Click to See Complete Forum and Search --> : Inno Setup, Stop overwriting database


I_Love_My_Vans
Aug 7th, 2005, 12:29 PM
Hey people,

i am using Inno Setup to install a program and database, but if they database already exists fro a previous version i dont want to overwrite it. What flags do i use?

cheers

randem
Aug 7th, 2005, 05:37 PM
I_Love_My_Vans,

onlyifdoesntexist
Only install the file if it doesn't already exist on the user's system.

Look in Inno Setup's help section under [Files] for a complete listing of Flags that can be used in the Files Section.

I_Love_My_Vans
Aug 7th, 2005, 05:53 PM
Also when uninstalling how do i choose not to uninstall a file it installed?

randem
Aug 7th, 2005, 06:13 PM
I_Love_My_Vans,

uninsneveruninstall
Never uninstall this file. This flag should be used sparingly, and is usually used in combination with the onlyifdoesntexist flag. It is meant to be used when installing a very common shared file, such as CTL3DV2.DLL or an MFC DLL, because you wouldn't want the uninstaller to delete the file since other applications make use of it also.

Look in Inno Setup's help section under [Files] for a complete listing of Flags that can be used in the Files Section.

I_Love_My_Vans
Aug 7th, 2005, 06:36 PM
Lol, thanks, i was looking in the FAQ instead of the help file.

Cheers