+ Post New Thread
Results 1 to 15 of 15
Windows Thread, MSI to execute a file in Technical; Ok i'm struggling a bit here... I'm trying to create a package around Visio 2007. So far i've run the ...
  1. #1
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    604
    Thank Post
    68
    Thanked 17 Times in 16 Posts
    Rep Power
    20

    MSI to execute a file

    Ok i'm struggling a bit here...

    I'm trying to create a package around Visio 2007. So far i've run the OCT to create the msp file and placed this in the Updates folder. I'm now trying to create an msi which simply executes a batch file i've created which in turn executes the setup.exe with added commands (afaik you can't just add the command you want to run to an msi file!!?) but am not having a lot of luck. I've created a blank msi and added a CustomAction called "SetupExecute", I then added this action to the InstallExecuteSequence table with a condition of NOT Installed AND (REMOVE<>"ALL") and Sequence number 50.

    When running this msi nothing really happens!! Any ideas?

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,867
    Thank Post
    412
    Thanked 778 Times in 651 Posts
    Rep Power
    183
    Wrong approach. MSI's aren't a replacement for scripts, which are what you want: either startup or login.

  3. #3
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    604
    Thank Post
    68
    Thanked 17 Times in 16 Posts
    Rep Power
    20
    Yes from trawling around the net i've gathered this isn't the right approach.

    Startup/Login scripts aren't ideal in the environment i'm dealing with here as am using an RM network and so really need to deliver this via msi.

    Thanks for the feedback though

  4. #4

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,345
    Thank Post
    242
    Thanked 1,602 Times in 1,278 Posts
    Rep Power
    346
    I would agree, in an ideal world scripts would be perfect for this task. You can run scripts in an RM network, but it's much more complicated. Second problem is that workstations are locked down far too much with Software Restriction Policies.

    I know RM CC3 uses a custom version of WinInstall LE to make MSIs RM compatible, but maybe using the real version of WinInstall LE to create an MSI might be the way forward?

  5. #5

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,159
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    125
    I don't think you'll be able to use any kind of MSI to install Visio - it uses the Installer Service and you can't get one MSI running another one (you get to the situation which I often get when I impatiently try and run two installs at the same time where Windows says "you can't do this because another setup is in progress"

  6. #6

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    116
    You can run scripts in an RM network, but it's much more complicated
    Not really, provided you want the equivalent of computer startup scripts.

  7. #7


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    Quote Originally Posted by srochford View Post
    ... you can't get one MSI running another one (you get to the situation which I often get when I impatiently try and run two installs at the same time where Windows says "you can't do this because another setup is in progress"
    You can with Windows Installer 4.5 and the chained installs feature.

  8. Thanks to Arthur from:

    srochford (19th May 2009)

  9. #8
    meastaugh1's Avatar
    Join Date
    Jul 2006
    Location
    London/Hertfordshire
    Posts
    893
    Thank Post
    70
    Thanked 85 Times in 70 Posts
    Rep Power
    33
    Quote Originally Posted by Arthur View Post
    You can with Windows Installer 4.5 and the chained installs feature.
    And you can do it in previous versions with Nested MSIs.

  10. Thanks to meastaugh1 from:

    srochford (19th May 2009)

  11. #9


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    I posted this on the RM Communities forums but I might as well post it here too, since it may be useful for other people.

    If Visio is anything like Project 2007, you don't need to do anything special other than to create a couple of config.xml files and put the .msp file which contains the product key and settings outside of the 'Updates' folder.

    Package.ini
    Code:
    [Package]
    Description=Microsoft Office Project 2007 Standard SP2
    Version=1.0.0.0
    OS=5.1WS
    ExeFile=Setup.exe
    AddCommand= /adminfile "\\CC3-DC-01\RMPackages\Applications\Microsoft Office Project 2007 Standard SP2\v1.0.0.0\Settings.msp" /config "\\CC3-DC-01\RMPackages\Applications\Microsoft Office Project 2007 Standard SP2\v1.0.0.0\config.xml"
    UninstallCommand= /uninstall "PrjStd" /config "\\CC3-DC-01\RMPackages\Applications\Microsoft Office Project 2007 Standard SP2\v1.0.0.0\config_uninstall.xml"
    config.xml
    Code:
    <Configuration Product="PrjStd">
     
    <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" NoCancel="yes" />
     
    <Logging Type="standard" Path="%temp%" Template="Microsoft Office Project Standard Setup(*).txt" />
     
    <PIDKEY Value="XXXXXXXXXXXXXXXXXXXXXXXXX" />
     
    <USERNAME Value="IT Department" />
     
    <COMPANYNAME Value="Your School Name" />
     
    <INSTALLLOCATION Value="%programfiles%\Microsoft Office" />
     
    <!-- <LIS CACHEACTION="CacheOnly" /> --> 
    <!-- N.B. Setup copies the LIS to the user's computer, but does not install the product -->
     
    <!-- <SOURCELIST Value="\\CC3-DC-01\RMPackages\Applications\Microsoft Office Project 2007 Standard SP2\v1.0.0.0" /> -->
     
    <DistributionPoint Location="\\CC3-DC-01\RMPackages\Applications\Microsoft Office Project 2007 Standard SP2\v1.0.0.0" />
     
    <!-- <OptionState Id="OptionID" State="absent" Children="force" /> -->
     
    <Setting Id="Reboot" Value="NEVER" />
     
    <Setting Id="SETUP_REBOOT" Value="NEVER" />
     
    <!-- <Command Path="msiexec.exe" Args="/i \\server\share\my.msi" QuietArg="/q" ChainPosition="after" Execute="install" /> -->
     
    </Configuration>
    config_uninstall.xml
    Code:
    <Configuration Product="PrjStd">
     
    <Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" NoCancel="yes" />
     
    <Logging Type="standard" Path="%temp%" Template="Microsoft Office Project Standard Setup(*).txt" />
     
    <Setting Id="Reboot" Value="Never" />
     
    <Setting Id="SETUP_REBOOT" Value="NEVER" />
     
    </Configuration>
    Last edited by Arthur; 19th May 2009 at 01:45 AM.

  12. Thanks to Arthur from:

    randle (19th May 2009)

  13. #10


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    Something else I found quite useful for Office 2007 was the following batch file. This can be used to extract the .msp files from the .exe update files all in one go.

    Edit. Code won't post properly, so I have pasted it here (http://tinypaste.com/b724a). Original script from here.
    Last edited by Arthur; 19th May 2009 at 01:49 AM.

  14. #11
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    604
    Thank Post
    68
    Thanked 17 Times in 16 Posts
    Rep Power
    20
    Quote Originally Posted by Michael View Post
    I would agree, in an ideal world scripts would be perfect for this task. You can run scripts in an RM network, but it's much more complicated. Second problem is that workstations are locked down far too much with Software Restriction Policies.

    I know RM CC3 uses a custom version of WinInstall LE to make MSIs RM compatible, but maybe using the real version of WinInstall LE to create an MSI might be the way forward?
    In an ideal RM world this would be installed via a single msi file

    Scripts aren't that more complicated on an RM network. You can created and assign them ala Vanilla along side the RM software but I don't want to have Two separate processes for this package.

    I'm giving Arthur's solution a go but at the moment CC4 isn't liking the install command arguments and event viewer isn't really giving any hint on the problem

    You can extract the SP files using the command
    Code:
    \\path_to_sp_exe\sp_filename /extract:"c:\chosen_extract_location"
    Last edited by randle; 19th May 2009 at 05:08 PM.

  15. #12
    MicrodigitUK's Avatar
    Join Date
    May 2007
    Location
    Wiltshire
    Posts
    340
    Thank Post
    38
    Thanked 56 Times in 52 Posts
    Rep Power
    25
    I’m running a RM CC3 network and sometimes use “Bat To Exe Converter” to convert BAT scripts so they Ghost run in the background so the users cant cancel them.
    Download

    And then lunch the exe from a MSI by using “Windows Installer Wrapper Wizard” Articles - Windows Installer Wrapper Wizard (WIWW) 0.2.0

    Or it can be just lunched by the RM application Agent by using an RM package ini file. (I use “Windows Installer Wrapper Wizard” as I come from the vanilla world)

    This really helps when you have a script that you only need to rune once and want to send it to fix all of your workstations.

  16. Thanks to MicrodigitUK from:

    randle (19th May 2009)

  17. #13
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    604
    Thank Post
    68
    Thanked 17 Times in 16 Posts
    Rep Power
    20
    I'll take a look at those tools Micro thanks

    Arthur thanks so much for your examples. I had remove some bits for CC4 but was pretty much the same and can now allocate and deallocate this fine. Legend

  18. #14


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    9,811
    Thank Post
    262
    Thanked 2,969 Times in 2,183 Posts
    Rep Power
    847
    Glad you got it working in the end. Microsoft sure don't make it easy.

  19. #15
    randle's Avatar
    Join Date
    Dec 2006
    Location
    Chelmsford, Essex
    Posts
    604
    Thank Post
    68
    Thanked 17 Times in 16 Posts
    Rep Power
    20
    No they don't but don't think i'll be forgetting how to allocate a MS application for a while though



SHARE:
+ Post New Thread

Similar Threads

  1. msi asking for CD
    By randle in forum Windows
    Replies: 13
    Last Post: 1st July 2009, 01:21 PM
  2. Editing an MSI file
    By Knopf in forum Windows
    Replies: 5
    Last Post: 4th March 2009, 05:35 PM
  3. Replies: 1
    Last Post: 8th June 2007, 09:43 PM
  4. Unable to execute anything after updates
    By sidewinder in forum Windows
    Replies: 5
    Last Post: 9th November 2006, 02:07 PM
  5. Replies: 4
    Last Post: 23rd March 2006, 07:27 AM

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
  •