This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- install
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 08, 2012
03:36 PM
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
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
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 09, 2012
08:32 AM
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.
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!
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!
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 12, 2012
08:12 AM
Thanks DemonPiggies. The information you gave me worked.
I'm glad my handle made your day!
I'm glad my handle made your day!
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)