/build/static/layout/Breadcrumb_cap_w.png

Setting the INSTALLDIR property based on the OS version

I'm assuming this is possible, but I just need confirmation. Here's the scenario;
I've been asked to create one MSI file that will be installed on either a Windows 2000 server or a Windows 2003 server. The MSI should perform basic file deletion and addition within a local folder, that is stored in one location on the Windows 2000 server and another on the Windows 2003 server.
My idea is to create a custom action sequence that performs the following actions;
If VersionNT=502 then ' Windows 2003 server
INSTALLDIR="Folder Path 1"
End If
If VersionNT=500 then ' Windows 2000 server
INSTALLDIR="Folder Path 2"
End If
Does anyone know if this will work?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
You want a type 51 custom action:
http://msdn.microsoft.com/en-us/library/aa368237(VS.85).aspx
Posted by: Netviz 15 years ago
Senior Yellow Belt
0
Thanks for the information...
I having a little difficulty setting it up though, as my initial post wasn't correct.

I need to set the directory name of the that the files get installed to and not the INSTALLDIR property, does anyone know how to do this?
Posted by: anonymous_9363 15 years ago
Red Belt
0
Directory names are, in effect, properties so update the relevant one.
Posted by: aogilmor 15 years ago
9th Degree Black Belt
0
Yes, as Ian says above, Directories are Properties
If you look in the directory table, everything in the left hand column (Directory) is a property which you can set.
Posted by: Netviz 15 years ago
Senior Yellow Belt
0
Thanks for your help, sorted it.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
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