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?
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)
Please log in to answer
Posted by:
aogilmor
15 years ago
Posted by:
Netviz
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
aogilmor
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.