+ Post New Thread
Results 1 to 2 of 2
Windows Thread, Need help adding a file to an MSI with Orca or similar in Technical; Ive been given some software called Universal Logicator by the Tech department to install. Helpfully it includes an MSI which ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,963
    Thank Post
    160
    Thanked 153 Times in 117 Posts
    Rep Power
    50

    Need help adding a file to an MSI with Orca or similar

    Ive been given some software called Universal Logicator by the Tech department to install. Helpfully it includes an MSI which works flawlessly, but they've undone their good work by requiring the Unlock Code to be typed into each machine on first bootup. The licence details are kept in a registration.xml file
    Obviously I could have a small script that copies this file into the correct directory but I would prefer the MSI to be able to do it all.

    Ive put the file in the folder the MSI takes the installation files from and tried adding the file to the 'files' table in Orca but it doesnt work - Im not surprised because I know nothing about Orca.

    Is there any way I can easily do this?

  2. #2
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    35

    Re: Need help adding a file to an MSI with Orca or similar

    This is not a trivial task by any means if the only tool you have is Orca and not much experience.

    What I tend do to is to create a transform (.MST file) which adds a custom script that runs after the install. The script can then do whatever you need it to do, including copying in extra files from the installation source.

    Create a new Transform file

    Add these 2 entries to the CustomAction table

    Action=SetPostInstallScriptPath
    Type=51
    Source=PostInstallScriptPath
    Target=[SourceDir]PostInstallScript.exe

    Action=RunPostInstallScript
    Type=3186
    Source=PostInstallScriptPath
    Target=

    Add these entries to the InstallExecuteSequence table
    Action=SetPostInstallScriptPath
    Condition=NOT Installed
    Sequence=(a number just after PublishProduct sequence number) |

    Action=RunPostInstallScript
    Condition=NOT Installed
    Sequence=(as above)+1

    Save this transform calling it something like PostInstallScript.mst.

    Create the post installation script in AutoIt, compile to PostInstallScript.exe and save it in the same folder as the MSI.

    Test, test and test again!!

    If you are assigning with AD then be sure to add the MST as a modification when doing the assignment.



SHARE:
+ Post New Thread

Similar Threads

  1. LAN VoIP or similar
    By Samson in forum Wireless Networks
    Replies: 5
    Last Post: 20th June 2007, 11:02 AM
  2. Download ORCA
    By tosca925 in forum Windows
    Replies: 7
    Last Post: 14th May 2007, 08:54 PM
  3. RM Easylink - need to achive similar... how?
    By stevegwernyfed14 in forum Web Development
    Replies: 33
    Last Post: 24th February 2006, 11:07 AM
  4. Replies: 11
    Last Post: 3rd February 2006, 01:29 PM
  5. edit file path in orca
    By russdev in forum Windows
    Replies: 1
    Last Post: 27th October 2005, 09:28 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
  •