/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
You want a type 51 custom action:
http://msdn.microsoft.com/en-us/library/aa368237(VS.85).aspx
Answered 01/19/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
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?
Answered 01/21/2009 by: Netviz
Senior Yellow Belt

Please log in to comment
0
Directory names are, in effect, properties so update the relevant one.
Answered 01/21/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 01/21/2009 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
0
Thanks for your help, sorted it.
Answered 01/21/2009 by: Netviz
Senior Yellow Belt

Please log in to comment