+ Post New Thread
Results 1 to 6 of 6
How do you do....it? Thread, Scripting and msi's in Technical; Im baffled im pritty sure im creating the msi properly because its 6 boxes to fill in but the current ...
  1. #1
    stu
    stu is offline
    stu's Avatar
    Join Date
    Sep 2007
    Location
    Plymouth Uni
    Posts
    436
    Thank Post
    31
    Thanked 7 Times in 7 Posts
    Rep Power
    17

    Scripting and msi's

    Im baffled
    im pritty sure im creating the msi properly because its 6 boxes to fill in

    but the current script is

    @echo off
    echo installing Lanchishire Music Service
    call .\Installer_files\setup.exe /S /v/qn
    call .\Installer_files\player\setup.exe /S /v/qn
    echo Finished



    each line of the script works in command line but as a whole it doesn't
    any ideas?

  2. #2
    Bezwick's Avatar
    Join Date
    Feb 2008
    Location
    Nottinghamshire
    Posts
    367
    Thank Post
    94
    Thanked 60 Times in 45 Posts
    Rep Power
    26
    I am guessing as i dont know your system, but from what i can remember from my old Dos days the call command was used to insert another batch file script into a batch file.
    It doesn't look from your script like you are calling another batch file and with it working from the commend line have you tried removing the call command?




    Quote Originally Posted by stu View Post
    Im baffled
    im pritty sure im creating the msi properly because its 6 boxes to fill in

    but the current script is

    @echo off
    echo installing Lanchishire Music Service
    call .\Installer_files\setup.exe /S /v/qn
    call .\Installer_files\player\setup.exe /S /v/qn
    echo Finished



    each line of the script works in command line but as a whole it doesn't
    any ideas?

  3. #3


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,706
    Thank Post
    354
    Thanked 807 Times in 722 Posts
    Rep Power
    348
    Call as a command is fine, I'm more likely to think it can't find the path to the echo and call commands so you should specify them fully.

  4. #4

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125
    When you run this batch file, what folder are you starting it in?

    Doing stuff like:

    .\installer

    is good - it makes the script easy to move to another folder - but assumes that the command prompt has started running in the right folder. If you're running this from a server then it won't - cmd won't start with a UNC as "current folder"

    You can make it completely portable by using the string slicing batch commands to work out "where am I now" and append that to the .\installer but it's probably easier to just put the full path in the batch file for now (or code it in VBScript which can be started in a UNC location)

    Just realised one other thing - if you're trying to include this in an MSI then the ".\" bit may well work - you're running in the same folder as the MSI - but those setup programs look suspiciously like ones which will themselves launch msiexec to run an MSI and then everything falls over because you can't launch an MSI from inside an MSI ...

    You might find it easier to use the Windows Installer Wrapper Wizard
    Last edited by srochford; 25th June 2008 at 11:32 AM.

  5. Thanks to srochford from:

    stu (25th June 2008)

  6. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    Boston, MA
    Posts
    7,601
    Thank Post
    110
    Thanked 771 Times in 599 Posts
    Rep Power
    183
    Quote Originally Posted by srochford View Post
    Just realised one other thing - if you're trying to include this in an MSI then the ".\" bit may well work - you're running in the same folder as the MSI - but those setup programs look suspiciously like ones which will themselves launch msiexec to run an MSI and then everything falls over because you can't launch an MSI from inside an MSI ...

    You might find it easier to use the Windows Installer Wrapper Wizard
    Indeed the setup commands are nasty povvit Installshield setups that call MSIs... the WIWW didn't work with these for some reason... hence the script wrapping them up. Stu failed to mention that to create the MSI he is using WIWW to wrap the batch file.

    If anybody knows an easy way to deploy the Lancashire Music Services Interactive Courses software we would be very grateful

  7. #6

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125
    Quote Originally Posted by Ric_ View Post
    Indeed the setup commands are nasty povvit Installshield setups that call MSIs... the WIWW didn't work with these for some reason... hence the script wrapping them up. Stu failed to mention that to create the MSI he is using WIWW to wrap the batch file.
    Can't believe I wrote the stuff about WIWW - of course it won't work because it's using an MSI to call an MSI ...

    why not put this as a machine startup script with a "flag" check -
    Code:
    if exist "c:\program files\music\abc.exe" goto end
    rem do stuff to install
    :end



SHARE:
+ Post New Thread

Similar Threads

  1. Cannot deploy any MSI's
    By sidewinder in forum Windows
    Replies: 12
    Last Post: 5th June 2008, 12:04 PM
  2. Wireless Laptops and MSI's
    By Newton in forum Windows
    Replies: 10
    Last Post: 25th April 2008, 12:40 PM
  3. Request: Flash & Shockware MSI's
    By contink in forum Windows
    Replies: 6
    Last Post: 15th January 2008, 09:30 PM
  4. MSI's :) HEEELLLLPPPP
    By Athlona in forum General Chat
    Replies: 21
    Last Post: 15th January 2008, 12:35 AM
  5. New to scripting
    By FN-GM in forum Scripts
    Replies: 26
    Last Post: 10th August 2007, 11:31 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
  •