Silent mode installs for current user

Got a problem you cannot solve? Try here.
Post Reply
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Silent mode installs for current user

Post by tzachk »

Hi,

We just found out that when running our installer in silent mode, the uninstall information is added to the users registry hive (HKEY_USERS). When same installer is installed with UI, the uninstall information appears for the machine (HKEY_LOCAL_MACHINE).

How can I fix this?
Regards,
T.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Silent mode installs for current user

Post by FrancescoT »

Dear Tzachk,

for what you are reporting, it seems that your package is installed as PER-USER when in executed in silent mode.

I may suggest you to verify the value of the pre-defined ALLUSERS variable, it must be TRUE for a PER-MACHINE installation.

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
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Silent mode installs for current user

Post by tzachk »

Hi Francesco,

I must admit the whole per-user and for all users settings in Installaware is confusing to me.
We have the following command

Code: Select all

~InstallAware Clipboard Data~
~Set Variable~
~{F80E8738-0521-4694-91D6-E375D23ED18A}~
~ALLUSERS$MYAH$MYAH$TRUE~
~TRUE~
At the start of our script. For my understanding it should work for silent and non-silent install. Correct me if I'm wrong.
We also set in the msi building pgplwiz.exe the following command "ALLUSERS=TRUE".

I would appreciate exact instructions on how to make an installer for all users and for current user, if the baove is wrong.

thanks,
T.
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Silent mode installs for current user

Post by tzachk »

Hi Francesco,

Just found the following link:
http://www.installaware.com/forum/viewt ... f=2&t=8571

It seems that I was right, there is an issue with silent mode and all users. During silent installation we must use ALLUSRES=TRUE in the command line no matter what.
We shall check it out, but please confirm that this is the expected behavior.

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

Re: Silent mode installs for current user

Post by FrancescoT »

Dear Tzach,

the topic you posted refers to a different behavior with MSI files.
This doesn't happen with a Compressed Exe, as I suppose you are using.

For test purpose, You may save in a text file the value of the ALLUSERS variable ... in order to verify its effective value at runtime.

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
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Silent mode installs for current user

Post by tzachk »

Hi Francesco,

We are using compressed exe put inside msi.
We added ALLUSERS=TRUE to the msi command line and it indeed solved our issue. We now run the command install.msi ALLUSERS=TRUE /quiet cmd="/s ..." and it installs for all users
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Silent mode installs for current user

Post by FrancescoT »

happy you solved!
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
tzachk
Posts: 171
Joined: Wed Jul 18, 2012 12:14 am

Re: Silent mode installs for current user

Post by tzachk »

Hi Francesco,

I'm getting back to the ALLUSERS=TRUE thing.
Though it seems that adding allusers=true to the msi execution command line solves installing for ALLUSERS, it seems that it is not working correctly. I'm getting all kind of weird issues if I do Remove/Repair in silent mode, which is working fine when using dialogs.
I can still see that the exe is getting ALLUSERS=FALSE instead of ALLUSERS=TRUE. I read in the forum that this is normal behavior for pgplwiz, but how can I change it?
Is there a list of all places where I need to check that ALLUSERS=TRUE to make sure the install is executing correctly.

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

Re: Silent mode installs for current user

Post by FrancescoT »

Dear Tzach,

are you passing ALLUSERS=TRUE when running a Remove/Repair in silent mode?
Is there a list of all places where I need to check that ALLUSERS=TRUE to make sure the install is executing correctly
It should be enough to test the ALLUSERS value at the very beginning of the main script.

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
Post Reply