+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 16
How do you do....it? Thread, How to deploy software via a script??? in Technical; Dont know what I am doing here. Normally I get an MSI and deploy via GP , We have got ...
  1. #1

    Join Date
    Jul 2010
    Posts
    557
    Thank Post
    65
    Thanked 21 Times in 18 Posts
    Rep Power
    13

    How to deploy software via a script???

    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

  2. #2
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    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
    Last edited by fairm010; 19th March 2014 at 11:45 AM.

  3. #3
    themightymrp's Avatar
    Join Date
    Dec 2009
    Location
    Leeds, West Yorkshire
    Posts
    1,201
    Thank Post
    211
    Thanked 222 Times in 191 Posts
    Rep Power
    72
    And you would probably set installer language to en rather than da - unless you're Danish?

  4. #4

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,916
    Thank Post
    857
    Thanked 1,428 Times in 982 Posts
    Blog Entries
    47
    Rep Power
    614
    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).

  5. #5
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    Quote Originally Posted by themightymrp View Post
    And you would probably set installer language to en rather than da - unless you're Danish?
    And that.. lol

  6. #6

    Join Date
    Jul 2010
    Posts
    557
    Thank Post
    65
    Thanked 21 Times in 18 Posts
    Rep Power
    13
    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?

  7. #7
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    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.
    Last edited by fairm010; 19th March 2014 at 03:02 PM.

  8. #8

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,916
    Thank Post
    857
    Thanked 1,428 Times in 982 Posts
    Blog Entries
    47
    Rep Power
    614
    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:
    Code:
    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.

  9. #9
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    Or use that way :P

    EDIT: woop!

  10. #10

    Join Date
    Jul 2010
    Posts
    557
    Thank Post
    65
    Thanked 21 Times in 18 Posts
    Rep Power
    13
    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.

  11. #11

    sonofsanta's Avatar
    Join Date
    Dec 2009
    Location
    Lincolnshire, UK
    Posts
    4,916
    Thank Post
    857
    Thanked 1,428 Times in 982 Posts
    Blog Entries
    47
    Rep Power
    614
    Startup scripts run as SYSTEM Local System so assuming permissions are ok for that (usually are by default) you shouldn't have any problems.

  12. #12

    Join Date
    Jul 2010
    Posts
    557
    Thank Post
    65
    Thanked 21 Times in 18 Posts
    Rep Power
    13
    Cheers

  13. #13
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    Did all go ok with this?

  14. #14

    Join Date
    Jul 2010
    Posts
    557
    Thank Post
    65
    Thanked 21 Times in 18 Posts
    Rep Power
    13
    @fairm010
    Just checked this morning and its not deployed on my test machine. This is my code
    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?

  15. #15
    fairm010's Avatar
    Join Date
    Jun 2010
    Location
    C:/Windows/System32/
    Posts
    1,133
    Thank Post
    47
    Thanked 145 Times in 127 Posts
    Rep Power
    45
    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.

  16. Thanks to fairm010 from:

    MattDLEA (24th March 2014)

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. How to deploy software in 2012 SCCM?
    By leewakelam in forum General Chat
    Replies: 4
    Last Post: 9th September 2013, 06:29 PM
  2. How to deploy win7 hotfix bundle via SCCM
    By RabbieBurns in forum Enterprise Software
    Replies: 0
    Last Post: 16th November 2012, 08:40 AM
  3. How to deploy monkeyjam via GPO
    By round2it in forum How do you do....it?
    Replies: 5
    Last Post: 9th May 2012, 01:39 PM
  4. How to use the quiet silent switch to deploy software through group policy
    By thom in forum Network and Classroom Management
    Replies: 5
    Last Post: 13th August 2008, 05:31 PM
  5. Deploy Software via GPO
    By ICTNUT in forum How do you do....it?
    Replies: 16
    Last Post: 4th July 2006, 04:09 PM

Thread Information

Users Browsing this Thread

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

Posting Permissions

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