cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
gigolojoe
Level 4

Run complete installation every time

Hi,
I have an installscript project that is pretty simple, just a handfull of files that go into a folder under program files.
When I put out a new version I don't want the user to have to uninstall. I just want the existing files to be overwritten and also have an uninstall option in add\remove programs.
How do I do that?
Thanks
Labels (1)
0 Kudos
(2) Replies
DemonPiggies
Level 7

The OnMaintUI() and OnUpdateUI() do this for you unless you've overrode them or OnShowUI(). Use can see how they do it by using the little toolbar that sits above the script you are writing in the Installscript section...

Also you'll need to use FeatureSelectNew() in order to select any new features that you've added that were not in the previous installation.


FeatureSelectNew( MEDIA, TRUE );

if (ADDREMOVE) then
FeatureUpdate("");
else
FeatureReinstall();
endif;


You can use the code in OnUpdateUI() to physically remove old files and then install the newer ones for a complete install.

In the Features/Components section you can also specify in the Overwrite properties under the General section how you want to overwrite the existing files.

PS. A.I. is one of my favorite movies and your username made my Friday!
0 Kudos
gigolojoe
Level 4

Thanks DemonPiggies. The information you gave me worked.
I'm glad my handle made your day!
0 Kudos