upgrading from WISE - Advanced Installer Community

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!

mjs
Posts: 13
Joined: Mon Jul 23, 2007 5:00 pm

upgrading from WISE

I have an installer that needs to upgrade an installation installed by a WISE. The WISE installer allowed the end user to choose if the installation was installed "only for me" or "all users".

The AI installer installs as "all users if admin, only for me if not".

I know that in order for the AI upgrade to work properly it needs to be installed in the same way it the previous installer. So if the WISE installer was installed for "all users", AI needs to be installed as "all users" for the upgrade to work, but since the end user got to choose in WISE, and not in AI this may not match.

Can you offer any advice on how to handle this situation? Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This can be done by using the MsiGetProductInfo function in a custom action. You can read more about this function here:
http://msdn2.microsoft.com/en-us/library/aa370130.aspx

For example, you can set szProduct to the GUID of the old installation, and szProperty to INSTALLPROPERTY_ASSIGNMENTTYPE. The result is stored in lpValueBuf (0 for per-user an 1 for per-machine). Note that you also need to specify a valid value for pcchValueBuf.

Also, you can use the ProductInfo method (similar to the MsiGetProductInfo function):
http://msdn2.microsoft.com/en-us/librar ... S.85).aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”