APPDIR is always set to be the user's AppData folder

Having trouble running Advanced Installer? Got a bug to report? Post it all here.

APPDIR is always set to be the user's AppData folder

Postby m.ono » Thu Mar 29, 2012 10:48 pm

Dear all -

It seems that the APPDIR variable is always set to the current user's AppData folder even though I selected the install type to be 'Per machine only'.
Also there seems to be a installer issue resulting from that where the installer suddenly cannot find a file needed in the installation process that supposedly should have been installed before but maybe in a different path. If I change the install type to 'per machine if user is adminstrator, ...' the installation works without complaint. But that is not what I intend to do. So how do I make APPDIR install in the Program-File-folder by default?

Thanks for your quick reply!
Martin
m.ono
 
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Re: APPDIR is always set to be the user's AppData folder

Postby Bogdan » Fri Mar 30, 2012 9:22 am

Hi Martin,

If your installation type is "Per machine only" then please assure that on the "Install Parameters" page the "Application Folder" field from "Installation Folder" group is set to this value:
Code: Select all
[ProgramFilesFolder][Manufacturer]\[ProductName]

With this settings your application should be installed in the Program Files folder.

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2403
Joined: Tue Jul 07, 2009 7:34 am

Re: APPDIR is always set to be the user's AppData folder

Postby m.ono » Fri Mar 30, 2012 4:16 pm

Dear Bogdan -

I've been doing the exact same thing you suggest. I does not work though. My default APPDIR once I launch the installer is always with a few exceptions that I was not able to reproduce the AppData folder of the user.

I am working on a Windows 7 64bit, with the latest version of the advanced installer 9.0 build 43403.

Thanks,
Martin
m.ono
 
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Re: APPDIR is always set to be the user's AppData folder

Postby m.ono » Fri Mar 30, 2012 9:01 pm

Here a log excerpt to give more details. You can see how it was defaulted to the Program-Files-folder but deleted it and replaced it with the users AppData-folder:

MSI (c) (C0:D0) [14:55:43:925]: Doing action: AI_AuthorSinglePackage
Action 14:55:43: AI_AuthorSinglePackage.
Action start 14:55:43: AI_AuthorSinglePackage.
MSI (c) (C0:E4) [14:55:43:994]: Invoking remote custom action. DLL: C:\Users\user\AppData\Local\Temp\MSI4C36.tmp, Entrypoint: AI_AuthorSinglePackage
MSI (c) (C0!C8) [14:55:44:015]: PROPERTY CHANGE: Deleting ALLUSERS property. Its current value is '1'.
MSI (c) (C0!C8) [14:55:44:056]: Doing action: FindRelatedProducts
Action 14:55:44: FindRelatedProducts. Searching for related applications
Action start 14:55:44: FindRelatedProducts.
Action ended 14:55:44: FindRelatedProducts. Return value 1.
MSI (c) (C0!C8) [14:55:44:170]: Doing action: MigrateFeatureStates
Action 14:55:44: MigrateFeatureStates. Migrating feature states from related applications
Action start 14:55:44: MigrateFeatureStates.
Action ended 14:55:44: MigrateFeatureStates. Return value 0.
MSI (c) (C0!C8) [14:55:44:259]: PROPERTY CHANGE: Deleting APPDIR property. Its current value is 'C:\Program Files (x86)\Company\Product\'.
MSI (c) (C0!C8) [14:55:44:281]: Doing action: AI_RESTORE_LOCATION
Action 14:55:44: AI_RESTORE_LOCATION.
Action start 14:55:44: AI_RESTORE_LOCATION.
Action ended 14:55:44: AI_RESTORE_LOCATION. Return value 1.
MSI (c) (C0!C8) [14:55:44:383]: PROPERTY CHANGE: Adding APPDIR property. Its value is 'C:\Users\user\AppData\Local\Programs\Company\Product'.
MSI (c) (C0!C8) [14:55:44:415]: PROPERTY CHANGE: Modifying APPDIR property. Its current value is 'C:\Users\user\AppData\Local\Programs\Company\Product'. Its new value: 'C:\Users\user\AppData\Local\Programs\Company\Product\'.
m.ono
 
Posts: 14
Joined: Thu Feb 16, 2012 10:12 pm

Re: APPDIR is always set to be the user's AppData folder

Postby Bogdan » Mon Apr 02, 2012 9:16 am

Hi Martin,

After looking on your log I think that on your Win 7 64-bit machine you could have an older version of your package. In this case you have an upgrade and your current package installation reads the feature states from the old version and then sets these feature states in the current version. You should try to test your package on a clean machine.
Also, if you want to use the current installation path of your package when you upgrade an older version of your application you must disable the "Product Information -> Upgrades -> Application Versions -> Use original installation path when upgrading" option.

If the problem persists can you please send us the aip file and a verbose log to support at advancedinstaller dot com so we can continue investigating them?

Regards,
Bogdan
Bogdan Mitrache
Advanced Installer Team
http://www.advancedinstaller.com/
Bogdan
 
Posts: 2403
Joined: Tue Jul 07, 2009 7:34 am


Return to Common Problems

Who is online

Users browsing this forum: Bing [Bot], Dan, Google [Bot], matt.luthi@gmail.com and 3 guests

cron