Avatar of oyvindell
oyvindell
 asked on

Install MSI file withc switches by startup script in gpo

Hello,

I have an msi file that I want to install. It`s a software from clue (dictionary) and to deploy this, I need to add switches for product code, what to install and so on.

The switch that I use now that works fine from command line is :

msiexec /qn /l* c:\temp\clue.log /i "\\pathtonetworkshare\library\software\Clue\Clue 8.3 for Windows.msi" CUSTOMER="CompanyName" PROGRAMCODE="xxx-xxx-xxx-xxx" DICTKEYS="xxx-xxx-xxx-xxx" INSTALLDIR="c:\clue" LANGUAGE="UK" CLUEINSTALLATIONTYPE="c:\clue" ADDIN=1 SHOWNONO=1 SHOWUKUK=1 SHONNNN=1 SHOWSVSV=1 NOUKMX=1 DENOMX=1 FRUKMX=1 ESUKMX=1 ESNOMX=1 SVUKMX=1 POUKMX=1 DAUKMX=1

How would I distribute this by GPO? I tried adding this code into notepad, save it as clue.bat and add it to startup scripts for computers, but it didn`t work. (The share I have given domain computers access).

Could I add this to a vbs script? How to write this, with rune once command and so on.

Or, is there a way to create a new msi file, just with these switches?
Active DirectoryInstallationVB Script

Avatar of undefined
Last Comment
Vadim Rapp

8/22/2022 - Mon
wamanma

Hope the below link helps you resolve your issue..

http://support.microsoft.com/kb/816102

Take care.
garyhak2009

Hi
Does the program need admin rights to install?  Where in GPO are you running script from USER or COMPUTER?
ASKER CERTIFIED SOLUTION
Oleg Meier

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
oyvindell

ASKER
I tried ocra, but to be honest, I didn`t understand where to edit all these changes. The ocra is maybe the correct tool, but to understand the changes to do is not something I managed.

The msi (or program) dont need admin rigts to be installed. I can as mentioned run the script I typed in first post without admin rights.

Is this something that could work as an option? (startup script would be clue.vbs that I would save this file as)

@echo off
if exist c:\clue\clue.exe goto :EOF
start /wait  "\\pathtonetworkshare\library\software\Clue\Clue 8.3 for Windows.msi" CUSTOMER="CompanyName" PROGRAMCODE="xxx-xxx-xxx-xxx" DICTKEYS="xxx-xxx-xxx-xxx" INSTALLDIR="c:\clue" LANGUAGE="UK" CLUEINSTALLATIONTYPE="c:\clue" ADDIN=1 SHOWNONO=1 SHOWUKUK=1 SHONNNN=1 SHOWSVSV=1 NOUKMX=1 DENOMX=1 FRUKMX=1 ESUKMX=1 ESNOMX=1 SVUKMX=1 POUKMX=1 DAUKMX=1
:EOF
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Oleg Meier

you can only install a msi with admin rights. If you want to install without admin right you must enable  elevated rights for windows installer here

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Installer
AlwaysInstallElevated=1
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer
AlwaysInstallElevated=1

For the orca see screenshots


 first click on new transform then change the poperties values the generate the transform and save them
johnb6767

Once you get the transforms worked out, you can deploy it with a Machine Startup Script....... Dont need to worry about limited users then....
SOLUTION
matrixnz

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Vadim Rapp

This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.