Not able to compile package when add pre requisite thru Wise Install Editor

Ravi's picture

Hi,

I am working on packaging this app- Workshare 5.2
http://www.appdeploy.com/packages/detail.asp?id=1489
which comprise of couple of kB's ,msi & setup files.What I am trying to do is i am creating tranform for the main msi(workshare msi) and in this MST FILE i am adding all other applications as prerequisite (which should be installed prior to main msi) with reqd silent switches.
The issue I am facing with is as soon as I compile it give error that workshare.wse couldn't found.

 Here in my case this wise script is not getting created.
the setps which i followed are -
step 1. created transform for main msi(which has to be installed in last)
2. go to build options and choose - create an EXE
3.go to prereq tab and check option - Dont check the launch cond of msi until after running prerequisite
add all setup.exe and msi with command lien switches
then i compile
and get error-
<appname>.wse couldnt be opened.please check spelling of the filename and that the file is accessible.
I referred wise install editor PDF also and as per that it says that in case wise installion system not able to communicate with Windows Installer you check for three wse files and if not available copy them
""If you have Wise Installation System, but it doesn’t contain the script actions that
communicate with Windows Installer (Get Windows Installer Property, Set Windows
Installer Property, and Evaluate Windows Installer Condition), you can copy them into
the Wise Installation System. From the Wise Package Studio/WiseScript Editor/Actions
folder, copy the 3 .WSE files named for these 3 script actions and paste them in your
Wise Installation System/Actions folder. After you reopen the Wise Installation System,
these actions are available."
These files also present on my machine.
I tried with Wise package studio 5.5 professional edition as well as wise 7 standard edition,but no success:(

Please suggest me what should i do?

Thanks & Regards,
R Ray

nac's picture

Wow

Wow I guess you are making it complicated !!

When you compile MST you come accross this message at the bottom. Where do you go when you double click on that message?

If that leads you to wise sourcepath table just see the path where its searching for wse.

am I on a right track to troubleshoot the issue?

If yes then I can post what exactly to do.

Wise version is irrelevant.

I dont know how IMPOSEBLE spells

Ravi's picture

It come as display message

It come as display message rather then error message & give OK tab to click :)
SO it doesnt lead me to any table which may be errornous.

Do i need to first create wise script and then add pre requisite for same?

But here Wisesourcepath table doesn't contain any entry,do i need to manually add all pre exe file here?

please suggest,

nac's picture

Are you compiling MST or making exe out of it?

Are you compiling MST or making exe out of it?

I dont know how IMPOSEBLE spells

Ravi's picture

Compiling MST which in this

Compiling MST which in this case coomunicate with script editor & generate EXE.
(I am doing it for first time )

EdT's picture

Check that the file is not in use

You cannot compile if the WSE is open in the editor in another window. Any file that is "in use" when you compile, will result in the error that the file cannot be opened.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Ravi's picture

Thanks,but i am not keeping

Thanks,but i am not keeping any WSE file open while compiling transform file.

EdT's picture

Compile to EXE option

I think you need to test this in stages.
First of all, start with a test system that has the pre-requisites installed, and test that your MSI and MST combination actually works.

The compile to EXE option, if I recall correctly, does not understand how to handle a transform, so the next step would be to merge the MSI and MST into a single MSI, compile to EXE with the pre-requisites, and test again. Once that works, then we can look further at sorting out the wisescript stub that compiles into the EXE, so that it can handle the MSI and a transform.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Ravi's picture

msi mst combination working..

Hi,

as you have suggested i have installed all pre requisites and then installed msi with transform which is working for me.
The next step which you have suggested I didnt get it.How sdo i merge MSI & MST into single MSI,thru custom action?
However I was running out of time so this package i found out other solution which I am using:
There is other way for silent install of Workshare 5.2 application

<path to Workshare.InstallWizard.exe> -product “Workshare
Professional” [-autorun] [-silent]

For this application I am using provided command line...but i would like to understand "Pre requsite installtion thru Wise Install Editor" & the methdo you suggested.

Thanks in advance,
R Ray

EdT's picture

Get a copy of the windows installer SDK

You can download the windows installer SDK freely from Microsoft. In there you will find useful vb scripts, and an MSI editor called ORCA.
With ORCA, you can open an MSI, then open a transform (or drop the transform onto the ORCA window using explorer), and this will allow you to view what the transform changes - as affected tables and entries are highlighted. You can also export the combined MSI/MST into a single new MSI (useful for testing).

Within the Windows Installer Editor, you can add pre-requisites when you choose to compile your MSI into an EXE. Adding a pre-requisite also enables the Edit button to give you access to the Wisescript that is eventually compiled into the EXE. The wisescript embeds the MSI and any pre-requisites into the EXE. Having the ability to edit the wisescript does also give you some control over what happens during the EXE installation.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.