Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Run Setup more than one time

HI

i use installer 10.6
if i run the setup for first time, then i run it again . a dialog with option ( Repair, remove ) appeared


Question: I want to maintain user to use the setup again if he wants, because my setup have defaults value controls and feilds and if he change the values new setup will performed, and that what i want.


How can i do that ?

thank you
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run Setup more than one time

Hello,

If you run the same installation package for the second time then Windows Installer will run the installer in maintenance mode and the user will then be presented with choices to alter the installed product, repair it or remove it (done through the MaintenanceTypeDlg). This is happening because the installation package has the same PackageCode GUID. No two .msi files should ever have the same PackageCode unless they are identical.

Please take a closer look on the Product Identification article.

By the way, if you want to allow different versions of the same application to be installed on the same computer you can enable the Allow side by side installs of different product versions option from the Upgrades page.

Please note that when authoring side by side installs of different versions of an application, it is recommended that some rules should be used. The install locations, registry entries, shortcuts etc. should differ from one version to another. If they are not different, the present items will be overwritten when a new version is installed. Also, they will be removed when a version of the application is uninstalled even if the other versions still uses them.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Run Setup more than one time

When i enable the option (Allow side by side installs of different product versions) in upgrade tab , it didn't work fine

cause i want to use the same setup to be installed on the machine without changing the version number. The attached image shows the warning message from installer ..


Please i want this case to pass ASAP.

I need to run the same setup on the same machine twice !!


Thank you (Advanced installer Support Team ) for you effort , realy u r great :D
Attachments
installer.png
installer.png (8.7 KiB) Viewed 7264 times
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run Setup more than one time

Hello,
When i enable the option (Allow side by side installs of different product versions) in upgrade tab , it didn't work fine
This only applies to installers with different product version.

In your case, you can define another instance in the Multiple Instances page. However, before adding the multiple instances functionality in your project, please check the Multiple Instance upgrade not working properly forum thread which debates the feature limitations.

Please let me know if you have other questions.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Run Setup more than one time

'' Installing Multiple Instances requires any of Windows 7, Windows Vista, Windows Server 2003, Windows XP with Service Pack 1 (SP1), Windows 2000 with Service Pack 4 (SP4) and Windows Installer 3.0 redistributable. ''


That means it will not work on windows server 2008 or windows server 2012 ??!!



AND ...::::.... >>>

** Multiple instances cannot be used on builds containing multiple languages or mixed 32 / 64 - bit package type

is that mean if my setup support Arabic and English language i cannot user multiple instances ?!


Regards
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run Setup more than one time

Hi,
Installing Multiple Instances requires any of Windows 7, Windows Vista, Windows Server 2003, Windows XP with Service Pack 1 (SP1), Windows 2000 with Service Pack 4 (SP4) and Windows Installer 3.0 redistributable.
That means it will not work on windows server 2008 or windows server 2012 ??!!
I'm afraid our documentation does not contain the Windows Server 2008 and Windows Server 2012. Thank you for bringing it to our attention. Of course the multiple instances will wok on the Windows Server 2008/Windows Server 2008 R2 and Windows Server 2012/ Windows Server 2012 R2.
Multiple instances cannot be used on builds containing multiple languages or mixed 32 / 64 - bit package type
Indeed, the Multiple instances cannot be used on builds containing multiple languages, mixed 32/64-bit package type or side by side installs.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jaradat
Posts: 29
Joined: Sun Feb 23, 2014 1:25 pm

Re: Run Setup more than one time

Everything is ok now...thank you
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Run Setup more than one time

You're welcome,

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”