evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Hybrid per-user/per-machine install error if Mfgr removed

Hello,

I'd like to build an installer using the "hybrid" installation type Per-machine if user is administrator, per-user otherwise.

I seem to have encountered a bug:

If I set the Application Folder property to its default value, [AI_UserProgramFiles][Manufacturer]\[ProductName], everything is fine.

However, if I remove the [Manufacturer]\ portion of the property, the per-user installation still works, but the per-machine installation no longer works and results in the error displayed below, with the Folder Path: property left blank.

Image

It may not be important, but I've also noticed that with the [Manufacturer]\ portion of the property removed, the installer seems to freeze for a few seconds before leaving the "InstallTypeDlg" dialog window.

I've used the format with the [Manufacturer]\ portion of the property removed on both per-user and per-machine installations individually; this only seems to affect the hybrid type.

Any thoughts? I'm using Advanced Installer 10.0.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Hybrid per-user/per-machine install error if Mfgr remove

Hi,

I've tested your scenario, but I cannot reproduce the behavior. Can you please send us a verbose log of the installation so we can investigate it? Also, can you reproduce the behavior on multiple clean machines or in a new project?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Re: Hybrid per-user/per-machine install error if Mfgr remove

Thank you for the reply. I took your advice and enabled the verbose log. From its information, I saw some temporary installer files were being loaded from %LOCALAPPDATA%\Temp\, so I cleared the entire folder and tried again.

This seems to have stopped the issue I was experiencing, but I have found something interesting:

If I open the setup and select an installation type like per-machine installation, it now loads the Program Files path correctly. However, if I cancel the installation, then re-run the installation and select the other installation type like per-user installation location, the installer immediately fails as shown in the image below. This has been repeatable for me and works the same if I select per-machine first or per-user first; when I re-run the installer and select a different option, the installer fails.

Image

I've also attached the verbose installer log file.
Attachments
package.log
(65.88 KiB) Downloaded 392 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Hybrid per-user/per-machine install error if Mfgr remove

Hi,

Indeed, this seems to be an Advanced Installer issue, but it is reproducing very rare to me (1-2 times per 50 tries). A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”