tmwoods
Posts: 11
Joined: Thu Dec 19, 2019 10:32 pm

APPDIR being reset halfway during silent msiexec install

Tue Nov 23, 2021 12:29 am

I am using msiexec to install my program and halfway through the installation APPDIR is being 'reset'.

My code to install:

Code: Select all

c:\zips>msiexec /i myMSI.msi AI_DEBUGLOG=1 /L*V "C:\test\log.log" /quiet /qn APPDIR="C:\Program Files (x86)\myAppDir\someNewFolder"
This seems to work because in the log I see:

Code: Select all

MSI (s) (68:DC) [14:50:11:068]: PROPERTY CHANGE: Adding APPDIR property. Its value is 'C:\Program Files (x86)\myAppDir\someNewFolder'.
But then halfway through the installation I see the following in the log:

Code: Select all

MSI (s) (68:DC) [14:50:15:025]: PROPERTY CHANGE: Modifying APPDIR property. Its current value is 'C:\Program Files (x86)\myAppDir\someNewFolder'. Its new value: 'C:\Program Files (x86)\myAppDir\originalFolder'.
Note this new value is the exact value in the Application Folder field in 'Install Parameters' in Advanced Installer.

From here the program attempts to install in the 'wrong' directory.

Am I doing something wrong where it won't persist?

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: APPDIR being reset halfway during silent msiexec install

Tue Nov 23, 2021 9:59 am

Hello,

I am not quite able to replicate the behavior you described.

Using the command you specified everything worked as expected, the application was installed in the path mentioned as parameter:
appdirCmd.png
appdirCmd.png (17.91KiB)Viewed 4877 times

Can you please send us the .AIP (setup project) file and an installation log by email to support at advancedinstaller dot com so we can further test and investigate this?

Or, even better, could you please create a sample project that reproduces this and forward it to me?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

tmwoods
Posts: 11
Joined: Thu Dec 19, 2019 10:32 pm

Re: APPDIR being reset halfway during silent msiexec install

Tue Nov 23, 2021 6:35 pm

I ended up just building a new package from scratch, repeating all the same config steps. This one works - still no idea why the other one doesn't but you can mark this as resolved. Probably something I am overlooking somewhere but not worth the investigation.

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: APPDIR being reset halfway during silent msiexec install

Wed Nov 24, 2021 8:40 am

Hi,

Thank you for your follow-up.

If you have any other questions, please don’t hesitate to contact us.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”