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

Got a problem you cannot solve? Try here.
gsRon
Posts: 26
Joined: Sun Sep 14, 2008 10:21 pm

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

Postby gsRon » Mon May 02, 2016 12:53 am

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 4049 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 4049 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.
Attachments
test.zip
(858.01 KiB) Downloaded 289 times

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Mon May 02, 2016 12:10 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

gsRon
Posts: 26
Joined: Sun Sep 14, 2008 10:21 pm

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

Postby gsRon » Mon May 02, 2016 6:48 pm

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.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

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

Postby FrancescoT » Tue May 03, 2016 1:25 pm

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
Attachments
testEdited.zip
(836.52 KiB) Downloaded 316 times
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot], JohnGaver, vaibhavopkey and 94 guests