We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DrBanana
Posts: 4
Joined: Wed Jan 13, 2016 3:32 am

Over install same package

I sometimes have very rapid updates of application and the app size is big. Creating an installer and signing takes time as it happens on a separate pc manually and I would like to avoid it by creating a permanent installer once. Also I'm moving the setup creation on to the server and do not want to have sign key file at there. So it's better to have installer created once.

Like just one Installer whose job is to copy the folder next to it to target directory. Now that is possible. I can create that installer and update only the folder without touching the installer app. But problem is what if user already have it installed? It will show repair and uninstall options, I do not want that. In that case, What I want is, installer should first run the specified cmd line which will remove the files and then copy the folder to target directory. Both are possible but how not to display uninstall/repair option?


But its all just presumptions, I'm still looking for something better. It would be good if I do not have to recreate the installer for each update. If you have any better idea please let me know.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Over install same package

Hello and welcome to Advanced Installer forums,

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. A new PackageCode is generated each time you build your project. Think of the PackageCode as some sort of checksum. No two .msi files should ever have the same PackageCode unless they are identical.

So, the approach is to increase the product version and rebuild your project. You will be prompted if you want to generate a new ProductCode. You need to allow to generate a new ProductCode.

For details, please take a look on the Product Identification article.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DrBanana
Posts: 4
Joined: Wed Jan 13, 2016 3:32 am

Re: Over install same package

Please read my post again. I do not want to create a different msi.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Over install same package

Hi,

Please note that this is the default behaviour if Windows Installer. You will be prompted in maintenance mode if you run the same .MSI once again.

If you want to perform an upgrade, you need to follow the steps from my previous post.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
DrBanana
Posts: 4
Joined: Wed Jan 13, 2016 3:32 am

Re: Over install same package

So Advanced Installer is completely dependent on Windows Installer ? Is there any way not to use msi but simple installer exe.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Over install same package

Hello,

Advanced Installer is a Windows Installer authoring tool. It offers a friendly and easy to use Graphical User Interface for creating and maintaining installation packages (EXE, MSI, etc.) based on the Windows Installer technology.

However, if you don't want to register with the Windows Installer service then you can disable the Register product with Windows Installer option from the Product Details page.

Note:
It is highly recommended that you use the Windows Installer service for the installation of your application. The Windows Installer service is an operating system component that centrally manages application installation configuration, as well as application uninstall. Using the Windows Installer service allows the operating system to manage application setup and configuration, which enables the following:
  • Management of reference counting and version-checking of shared components-which helps ensure that applications co-exist better with one another.
  • Self-repair of damaged applications at runtime-When the application is launched, the Windows Installer will check to ensure that the application is properly installed, and if it is not, will automatically repair the application on-the-fly.
  • Transacted install-In the event that the installation is not completed (for example, if there is a network failure), the Windows Installer can roll back to the earlier installed version of the application without error.
  • Reliable and complete uninstall-including correct handling of shared components.
  • Ability to perform installation on secure systems-for non-administrators and non-power users.
  • Application installation-More readily supports mass deployment in organizations using Windows 2000 software management, and as a result of standard support for customization and unattended install.
  • Fewer problems arising from application install-Installation and uninstallation of applications is less likely to affect the functioning of another application because reference counting and version-checking are properly implemented.
  • Customers can properly uninstall your application.
If you have other questions, please let me know.

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

Return to “Building Installers”