Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / February 2004

Tip: Looking for answers? Try searching our database.

Setting a component's attribute.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prabh - 26 Feb 2004 20:37 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.