Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF THEN ELSE... How with Wise for Win Installer

Status
Not open for further replies.

giove9

IS-IT--Management
Nov 6, 2003
3
0
0
IT
Hi,
I must translate the following lines of a legacy setup into a msi package:

1) Search for a registry Key (ok, no problem)
Code:
Get Registry Key Software\.... Place in Variable APP_PATH
2) Conditional statement: a dll file must be installed in a specific folder:
Code:
IF APP_PATH Not Equal "" Then
   Install File %_Source_%\MyDLL.dll to %[b]APP_PATH[/b]%\MyDLL.dll
ELSE
   Install File %_Source_%\MyDLL.dll to %[b]MAINDIR[/b]%\MyDLL.dll
How can I translate this condition in WINDOWS Installer Editor (WISE PACKAGE STUDIO 5)?

Thanks
 
I use Wise for Windows Installer 4.2. I think you have two options:

Use 2 'If' statements in the Editor:

Code:
IF APP_PATH Not Equal "" Then
   Install File %_Source_%\MyDLL.dll to %APP_PATH%\MyDLL.dll
END

IF APP_PATH Equal "" Then
   Install File %_Source_%\MyDLL.dll to %MAINDIR%\MyDLL.dll
END

Or...

Create and run a wisescript at this point. Wisescript is more robust and allows If, Then, Else, ElseIf statements.

Good luck,

Kate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top