Page 1 of 1

'Location is not available' error when installing under System account

Posted: Mon May 02, 2016 12:53 am
by gsRon
We have been getting 'Location is not available' error when our installer is running under the System account.

2016-05-02_13-23-11.jpg
2016-05-02_13-23-11.jpg (67.16 KiB) Viewed 4047 times


We are using InstallAware Studio Admin X4.

The error was difficult to locate because it occurs before the code in our package executes. The IA dialog is being displayed, and progressing when the 'Location is not available' error message is displayed. If you select OK, the install can continue, but this is not acceptable because it stops silent installs :(

The issue is easy to reproduce, if you select 'New Project', then 'Native Setup'

2016-05-02_13-30-49.jpg
2016-05-02_13-30-49.jpg (93.02 KiB) Viewed 4047 times


build the project, then with the help of PSEXEC run the installer.

'psexec -i -s c:\sw\test.exe'

and you will get the error message.

The cause of the error message is line 184, 'Display Dialog: destination ...'. If you comment this line out and rebuild the project, you can run the install in the System account.

The IA project i used is in the attached ZIP file

Can this issue be fixed?

Ron.

Re: 'Location is not available' error when installing under System account

Posted: Mon May 02, 2016 12:10 pm
by FrancescoT
Dear Ron,

this same subject has been widely discussed on the forum.
I suggest you to have a look at the following link.
http://www.installaware.com/forums/viewtopic.php?f=2&t=10656

Hope this helps you.

Regards

Re: 'Location is not available' error when installing under System account

Posted: Mon May 02, 2016 6:48 pm
by gsRon
FrancescoT,

Thanks for the reply, but:

The 2 blocks of code mentioned in that discussion are in the sample project i attached. lines 94 - 98 and 234 - 238. The code in that project is what is provided by the template when selecting new project.

I understand that since there is no Desktop for the System account, the install must be for all users. But the problem is the 'Location is not available' error is raised before any code in the project is reached.

The only way around it that I have found is to comment out the 'Display Dialog: destination ...' line, but this is not acceptable.

Ron.

Re: 'Location is not available' error when installing under System account

Posted: Tue May 03, 2016 1:25 pm
by FrancescoT
Dear Ron,

please have a look at my edited version of your original project.

Under system account the "Browse for Folder" control cannot be used (... the same limitation is true with other controls).
This is one of the reasons because setups are generally executed in silent mode under system account.

In addition, under system account the installation must be executed as PER-MACHNE (ALLUSERS=TRUE). Consequently the ALLUSERS parameter must be explicitly passed from the command line.

For example;
- psexec -i -s "c:\sw\Test.exe" ALLUSERS=TRUE
or
psexec -i -s "c:\sw\Test.exe" ALLUSERS=TRUE /s (silent mode).

Regards