PDA

View Full Version : How to install setup.exe with group policy



testuser
08-25-2020, 08:25 AM
Hello,


How to install setup.exe with group policy?


Thanks in advance!

linder
08-26-2020, 06:25 AM
Hello,

you have several different options. What you can do is to embed the generated setup.exe into a setup.msi and it will deploy silently using a Group Policy Object under Active Directory.

Friedrich

testuser
08-26-2020, 07:02 AM
Thanks Friedrich!

What is the best way to embed exe file to msi using setupbuilder? I have tried using "#prgma exe2msi" to create msi, but when installed through this msi, it does not create entry in Add/Remove programs of control panel.

linder
08-26-2020, 07:41 AM
See attached screenshot. This is a embedded EXE and it creates the Add/Remove info without any problem. NOTE: I did not code-sign the file!

https://setupbuilder.com/projects/test_msi.msi

Friedrich

testuser
08-27-2020, 03:00 AM
Hello,

I tried installing test_msi.msi file, it does create entry in Add/Remove programs. Can you please share the project file for this test_msi project, so that we can compare and verify.


Thanks!

linder
08-27-2020, 04:29 AM
Hello,

I have uploaded my test project:

https://www.setupbuilder.com/projects/test_msi.zip

Friedrich

testuser
08-27-2020, 07:06 AM
Hello,

Thanks Friedrich, your demo application helped me for in debugging the error.

I had set $SB_ALLUSERSFLAG$ to 0 that is why it was not adding entry in Add/Remove programs. I commented out the line for $SB_ALLUSERSFLAG$ to 0 and then it worked fine.

Can you please elaborate on $SB_ALLUSERSFLAG$ like when should we use it, usecases or scenarios??

Thanks!!

linder
08-27-2020, 07:38 AM
Hello,

$SB_ALLUSERSFLAG$—If flag set, the software will be installed for all users. If not set and the destination computers is running Windows NT, Windows 2000, Windows XP, 2003, Vista, Windows Server 2008, Windows 7, or Windows 8 and later it will be installed for the current user.

This lets you control the per-user / per-machine handling (registry, shortcuts, etc.).

Friedrich

testuser
08-31-2020, 01:11 AM
Ok, Thanks Friedrich.