Run program returns -11 for only user

Got a problem you cannot solve? Try here.
dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Run program returns -11 for only user

Postby dasjester » Sun Jan 03, 2021 11:12 pm

When I run :
Run Program $SQLSNY_RT$ As $SQLANY_RT$\setup.exe (wait, get result into variable RT_RET)

I get a return code of -11 when I run as User Only
When I run for All users it runs.

I checked the users/appdata/local/temp/mia1/fb0 I cannot enter into this folder when I run as only user,
but when all users is checked I can get into the folder.

I tried all 3 optons of Run UAC elevation and get the same errors in all combinations, when I run as Admin of
the EXE or normal as well.

Thanks

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

Re: Run program returns -11 for only user

Postby FrancescoT » Mon Jan 04, 2021 1:58 pm

Can you please specify the exact parameters you specified with "Run Program"?
it seems you are using "Run Program AS" , but it looks you specified "Setup.exe" with the USER parameter.
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

dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Re: Run program returns -11 for only user

Postby dasjester » Mon Jan 04, 2021 3:02 pm

ok, had a slight syntax error

First I :
set variable SQLANY_RT to
define file bag : "C:\Omega\Deploy\Test-1\sqlany8RT\*.*, include files recursively, get runtime location of files into variable SQLANY_RT

then its either:
Run Program $SQLANY_RT$\setup.exe (wait, get result into variable RT_RET)
OR I tried also
Run Program under UAC $SQLANY_RT$\setup.exe (wait, get result into variable RT_RET)

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

Re: Run program returns -11 for only user

Postby FrancescoT » Tue Jan 05, 2021 10:26 am

I just done a test using the following code in a blank setup project, and it works fine either when running as PER-MACHINE or PER-USER. For what concerns UAC Elevation, I leaved the default setting: "highestAvailable (Elevate Administrators Only)".

Code: Select all

Set Variable FILE_BAG_LOCATION to
Define File Bag : C:\Program Files (x86)\InstallAware X13\runtimes\vc1410_25017_x86\*.*, include files recursively, get runtime location of files into variable FILE_BAG_LOCATION
 
Set Variable RUN_PROGRAM_RESULT to
Run Program $FILE_BAG_LOCATION$\vc_redist.x86.exe /install /norestart /quiet (WAIT, get result into variable RUN_PROGRAM_RESULT)
MessageBox: Debug, RUN_PROGRAM_RESULT=$RUN_PROGRAM_RESULT$

Code: Select all

~InstallAware Clipboard Data~
~MessageBox~
~{1853AAA7-D7F9-4BB3-B7E8-9FB20D0178E5}~
~Debug~
~RUN_PROGRAM_RESULT=$RUN_PROGRAM_RESULT$~
~0~
~1~
~~
~Run Program~
~{780E483C-E01F-48E3-918A-38D6E0BB1301}~
~$FILE_BAG_LOCATION$\vc_redist.x86.exe~
~FALSE~
~/install /norestart /quiet~
~TRUE~
~RUN_PROGRAM_RESULT~
~Set Variable~
~{B5604220-1EFE-4D21-A491-EF20076D975E}~
~RUN_PROGRAM_RESULT$MYAH$MYAH$FALSE~
~~
~Comment~
~{5F8A26CC-9BD7-4F77-8D3D-D451BB876D6D}~
~~
~File Bag~
~{FAA35565-5111-4E57-9308-14F8051A4958}~
~"C:\Program Files (x86)\InstallAware X13\runtimes\vc1410_25017_x86\*.*|",TRUE,FILE_BAG_LOCATION~
~mFileBagIDE.dll\mFileBagEXE.dll~
~Set Variable~
~{9030CB23-FAF8-40F0-AA14-724F210A561E}~
~FILE_BAG_LOCATION$MYAH$MYAH$FALSE~
~~

Consequently, I exclude that your issue may be caused by this code specifically. I suspect instead that there is something else in your project at the root of your issue.
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

dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Re: Run program returns -11 for only user

Postby dasjester » Tue Jan 05, 2021 11:37 am

The issue arises when I choose to install for This user only on the machine,
When I choose All Users the file location is accessible.

But from what I can tell selecting that option only changes the shortcut folder locations and does not
touch the MIIA1 temp file location which should be handled by the core

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

Re: Run program returns -11 for only user

Postby FrancescoT » Tue Jan 05, 2021 12:58 pm

As I said I tried both install modes, as PER-USER (ALLUSERS=FALSE) and PER-MACHINE (ALLUSERS=TRUE). Both worked.
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] and 31 guests