Hello all,
In my .msi I need to make Foo.txt "Leave installed on uninstall" and
"Never Overwrite if already exists".
For this I need to set the attribute of the component to 144.
I can see no way of doing this from Visual Studio 2003 .NET.
How does one set attributes, properties from .NET?
Is ORCA the only way out?
I made up a transform which sets the component's attribute to 144 and
apply this transform everytime the .msi is recompiled. This is
cumbersome and it'd be great if .NET could allow setting attributes.
Any way out of this?
Thanks,
Prab
Dennis Bareis - 27 Feb 2004 02:34 GMT
Hi,
>Hello all,
>In my .msi I need to make Foo.txt "Leave installed on uninstall" and
[quoted text clipped - 9 lines]
>cumbersome and it'd be great if .NET could allow setting attributes.
>Any way out of this?
You can write some script to do this or use my MAKEMSI tool.
Bye,
Dennis
----------------------------
Dennis Bareis (dbareis@KillSpam.labyrinth.net.au)
http://www.labyrinth.net.au/~dbareis/index.htm
Free MSI automation/creation tool:
http://www.labyrinth.net.au/~dbareis/makemsi.htm
----------------------------
Phil Wilson - 27 Feb 2004 18:03 GMT
You can use the Permanent property in the VS IDE - that translates to the
msidbComponentAttributesPermanent bit. There doesn't seem to be a way to set the
never overwrite bit.

Signature
Phil Wilson [MVP Windows Installer]
----
> Hello all,
> In my .msi I need to make Foo.txt "Leave installed on uninstall" and
[quoted text clipped - 12 lines]
> Thanks,
> Prab