Scripting Question

WISE Installer MAINDIR variable not working

10/03/2014 4331 views


I'm trying to push out CoreFTP via TEM using this command:

coreftplite2.1.exe /S /M=c:\temp\install.txt

Where install.txt is my variables file that simply contains my switch in Install directory as shown here:


The process is launching fine but just wasn't completing.  If I take the /S switch off so I can see what's going on, the problem is immediately apparent.  The WISE installer is reading my install.txt and then catenating it to the existing variable, NOT replacing it like it should.

C:\Program Files (x86)\E:\CoreFTP

Anyone have any ideas?

0 Comments   [ + ] Show comments


All Answers


CoreFTP is an MSI. Extract it and run the MSI.

They use a CustomAction to set the Install location, the variable MAINDIR is NOT in the CoreFTP MSI.


you would have to use TARGETDIR=E:\CoreFTP\


Answered 10/13/2014 by: Badger
Red Belt


Set the existing variable to "" in the main code. That's the best I can suggest in the absence of viewing your code.

If posting again, do include information on which precise version of Wisescript you are using.

Answered 10/07/2014 by: EdT
Red Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ