Hi,
I'm trying make software package (msi), which will work with vista and xp. For example if I install this msi in vista, will create folder:
c:\somevistafiles\somefile.dat
but, when I install this msi in xp, will create
c:\somexpfiles\file.dat

How I can do this in Admin Studio 8.5(Installshield)?

Regards
0 Comments   [ + ] Show 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.

Answers

0
I guess the simplest route is to create a 'Set Property' Custom Action to alter the target directory's name, conditioned appropriately, of course.
Answered 08/05/2008 by: VBScab
Red Belt

Please log in to comment
0
Why not add conditions to your XP and Vista components so they only get installed on their respective OS version?
Answered 08/05/2008 by: AngelD
Red Belt

Please log in to comment
0
ORIGINAL: AngelD

Why not add conditions to your XP and Vista components so they only get installed on their respective OS version?



That's the way I would do it as well.

For the XP component to be installed, use the following condition

(VersionNT >= 501) AND (VersionNT < 600)

For the Vista component to be installed use the following condition

VersionNT >= 600

Regards,

Spartacus
Answered 08/05/2008 by: spartacus
Black Belt

Please log in to comment
0
I read the OP as installing the same file but to different folders. I'd guessed (perhaps incorrectly) that the 'file.dat' and 'somefile.dat' was an ommision and both were meant to be 'somefile.dat' or 'file.dat'. Certainly, if they're different files and not just different folder names, then a conditioned feature is the way to go. As ever, look what 'ASSUME' did... :)
Answered 08/05/2008 by: VBScab
Red Belt

Please log in to comment
0
Have in mind that Windows Server 2008 will also have VersionNT = 600
Answered 08/05/2008 by: AngelD
Red Belt

Please log in to comment
0
ORIGINAL: AngelD

Have in mind that Windows Server 2008 will also have VersionNT = 600



Good point, how about

(VersionNT >= 600) AND (MsiNTProductType=1)

as the condition for the Vista component

Regards,

Spartacus
Answered 08/05/2008 by: spartacus
Black Belt

Please log in to comment
0
Using MsiNTProductType=1 would resolve to true for non-server NT platform so seems like a good suggestion Spartacus.
Answered 08/05/2008 by: AngelD
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity