Jump to content

Recommended Posts

Posted

Dont know what I am doing here.

 

Normally I get an MSI and deploy via GP,

 

We have got some lego Story Starter software which comes as an exe

 

the instructions I have are.

 

To run the installer in unattended mode, run the installer with the “mode” parameter set to

“unattended”.

StoryVisualizerFull-windows-installer.exe --mode unattended --installer-language [language]

--prefix [directory]

Example:

If you want to install StoryVisualizer in Danish in a specific directory use the following:

StoryVisualizerFull-windows-installer.exe --mode unattended --installer-language da --prefix

c:\StoryVisualizer\

OPTIONAL PARAMETERS

Set installed language

To change the default start-up language of StoryVisualizer use the --installer-language

parameter

--installer-language [language]

Use one of these values:

da Danish

de German

en English

es Spanish

fr French

ja Japanese

no Norwegian

ru Russian

sv Swedish

zh_CN Simplified Chinese (Note the capital letters “CN”)

By default, the language for installation is based on the language of the operating system

Set installation directory

To specify the installation directory use the --prefix parameter

--prefix [directory]

Help

To view all available parameters for the installer, use the --help parameter.

 

As I have never installed anything this way what do I need to do?

 

Cheers

Posted (edited)

Id stick this in a batch file then call it as a startup script in GP.

 

\\server\pathtoexe\StoryVisualizerFull-windows-installer.exe -mode unattended -installer-language da -prefix c:\StoryVisualizer\

 

EDIT: Its more likely to use single hyphens that double but try it if it doesnt work.

 

Matt

Edited by fairm010
Posted
You probably also want some logic built in that checks if a file exists already - if it does, software is installed and do nothing, if not then install. Any of the files installed as normal would work (or reg keys in HKLM if you prefer to go that route).
Posted

Cheers,

Made a batch file which works when i tested it manually.

How would I go about adding a check and the logic.

 

Then wouldit be a case of creating a new GP and adding it in computer config > windows Settings > scripts > start up > clicking add and finding the .bat file?

Posted (edited)

So you'd use this:

 

IF NOT EXIST "c:\StoryVisualizer\lego.exe" "\\server\pathtoexe\StoryVisualizerFull-windows-installer.exe -mode unattended -installer-language da -prefix c:\StoryVisualizer\"

 

exit

 

(Assuming that its installed to c:\StoryVisualizer\ and the exe is called lego.)

 

Then yeah, as you said.

Edited by fairm010
Posted

Correct on the startup.

 

Regarding the logic, this is the Office 2010 install script that MS provided... should be able to hack it together into a shape that suits your purpose:

setlocal

REM *********************************************************************
REM Environment customization begins here. Modify variables below.
REM *********************************************************************

REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix. 
set ProductName=Office14.ProPlus

REM Set DeployServer to a network-accessible location containing the Office source files.
set DeployServer=\\server\share\AppDeploy\Microsoft\Office2010ProPlus\CD

REM Set ConfigFile to the configuration file to be used for deployment (required)
set ConfigFile=\\server\share\AppDeploy\Microsoft\Office2010ProPlus\CD\ProPlus.WW\config.xml

REM Set LogLocation to a central directory to collect log files.
set LogLocation=\\server\share\AppDeploy\Microsoft\Office2010ProPlus\install_logs

REM *********************************************************************
REM Deployment code begins here. Do not modify anything below this line.
REM *********************************************************************

IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)

REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key
:ARP64
reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if NOT %errorlevel%==1 (goto End)

REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS) 
:ARP86
reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%
if %errorlevel%==1 (goto DeployOffice) else (goto End)
REM REMOVE LINE BELOW
REM goto DeployOffice

REM If 1 returned, the product was not found. Run setup here.
:DeployOffice
start /wait %DeployServer%\setup.exe /config %ConfigFile%
echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt

REM If 0 or other was returned, the product was found or another error occurred. Do nothing.
:End

Endlocal

If there's no relevant reg key you can use from your software, you should be able to Google up a way of doing a file check instead - I wouldn't have a clue off the top of my head :)

 

EDIT: stuff all that, @fairm010's is much easier.

Posted

If it's a startup script will it ask for admin password?

 

Just run the script as a logged on teacher it asked for admin name and password.

Posted

@fairm010

Just checked this morning and its not deployed on my test machine. This is my code

if EXIST "C:\StoryVisulizer\" GOTO End

\\server\pathtoexe\StoryVisualizerFull-windows-installer.exe -mode unattended -installer-language en -prefix c:\StoryVisualizer\

:End

 

This works if i log on a computer and run the bat everything is fine.

 

I have gone to GP created a new one computer config > windows Settings > scripts > start up >Clicked add found the file. ( do i need to add script parameters?)

 

If I click on the show files button in that pop up box it opens a domain.local browser/polocies {big long hex}/machine/scripts/startup and nothing is displayed.

Ignoring that I have my security Filtering set to the PC that i am testing it on.

 

Restarted the machine twice?

Any ideas?

Posted

What I normally do is copy the script to the location that opens when you click Show Files then reference that in the box above. No script parameters are needed.

 

Try putting a test machine into its own OU and link the GP to that rather than using security filtering. Then do a gpupdate /force then a restart.

 

- - - Updated - - -

 

What I normally do is copy the script to the location that opens when you click Show Files then reference that in the box above. No script parameters are needed.

 

Try putting a test machine into its own OU and link the GP to that rather than using security filtering. Then do a gpupdate /force then a restart.

  • Thanks 1
Posted

Thanks

What I normally do is copy the script to the location that opens when you click Show Files then reference that in the box above. No script parameters are needed.

 

That solved the issue

 

:)

Learned something today

 

- - - Updated - - -

 

Thanks

What I normally do is copy the script to the location that opens when you click Show Files then reference that in the box above. No script parameters are needed.

 

That solved the issue

 

:)

Learned something today

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...