Page 1 of 1

Silent mode installs for current user

Posted: Thu Nov 13, 2014 2:40 am
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.

Re: Silent mode installs for current user

Posted: Thu Nov 13, 2014 12:33 pm
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.

Re: Silent mode installs for current user

Posted: Sun Nov 16, 2014 10:23 am
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.

Re: Silent mode installs for current user

Posted: Mon Nov 17, 2014 6:27 am
by tzachk
Hi Francesco,

Just found the following link:
viewtopic.php?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

Re: Silent mode installs for current user

Posted: Mon Nov 17, 2014 1:11 pm
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

Re: Silent mode installs for current user

Posted: Tue Dec 02, 2014 9:18 am
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

Re: Silent mode installs for current user

Posted: Tue Dec 02, 2014 1:27 pm
by FrancescoT
happy you solved!

Re: Silent mode installs for current user

Posted: Sun Dec 28, 2014 8:15 am
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.

Re: Silent mode installs for current user

Posted: Mon Dec 29, 2014 12:20 pm
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