+ Reply to Thread
Results 1 to 9 of 9

Thread: How to install setup.exe with group policy

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default How to install setup.exe with group policy

    Hello,


    How to install setup.exe with group policy?


    Thanks in advance!

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How to install setup.exe with group policy

    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

  3. #3
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How to install setup.exe with group policy

    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.

  4. #4
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How to install setup.exe with group policy

    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
    Attached Images Attached Images  

  5. #5
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How to install setup.exe with group policy

    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!

  6. #6
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How to install setup.exe with group policy

    Hello,

    I have uploaded my test project:

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

    Friedrich

  7. #7
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How to install setup.exe with group policy

    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!!

  8. #8
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: How to install setup.exe with group policy

    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

  9. #9
    Join Date
    Aug 2020
    Location
    Pune, India
    Posts
    49

    Default Re: How to install setup.exe with group policy

    Ok, Thanks Friedrich.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •