Conditional File Install

Got a problem you cannot solve? Try here.
Post Reply
timhaughton
Posts: 4
Joined: Fri Aug 29, 2008 5:56 am
Contact:

Conditional File Install

Post by timhaughton »

In my package (a dev component), I ship 3 builds of a dll supporting

XP x86
Vista x86
Vista x64

All 3 dlls are copied into sub folders in the target folder in program files.

I also need to copy 1 of the dlls into the Windows System folder. For example, on an XP x86 system, I need to copy the appropriate dll into System32 folder.

I'm a complete novice at Installaware - how do I do this?

I have version 7 studio admin.
Damocles
Posts: 27
Joined: Wed May 28, 2008 7:41 am

Post by Damocles »

You can get some data from the operation system with:

Get System Setting Windows XP into a
Get System Setting VISTA into b
But if i read it correctly, it returns true when anything above the requirement is met. So be careful ;-)


Then:

Code: Select all

if a equals true
	Install Files x.dll to $location$
else
	if b equals true
		Install Files y.dll to $location2$
	else
		Install Files z.dll to $location3$
	end
end
timhaughton
Posts: 4
Joined: Fri Aug 29, 2008 5:56 am
Contact:

Post by timhaughton »

Damocles wrote:You can get some data from the operation system with:

Get System Setting Windows XP into a
Get System Setting VISTA into b
But if i read it correctly, it returns true when anything above the requirement is met. So be careful ;-)
Hi, thanks for the reply. How do I differentiate between Vista x86 and Vista x64 in this example?

Cheers,

Tim
Damocles
Posts: 27
Joined: Wed May 28, 2008 7:41 am

Post by Damocles »

Yes, that's a good question. Never done it myself(pretty new to IA as well) so take this as speculation:

When you look at the info to [get system settings], it lists [processor architecture capability] with X86 and IA64 as well as AMD64.

There is also the [Get OS or SP Level] command.

I would try those, though i'm not sure it would work.

You can also always contact IA support with their ticket system. (Homepage->support->submit a ticket).
Post Reply