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 / .NET Framework / Setup / June 2005

Tip: Looking for answers? Try searching our database.

Change settings of installer using VB.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gv - 20 Jun 2005 22:41 GMT
Hi all,

Using VS 2003 VB.NET

How do I in vb.net change a value of MSI file. The exact one I would like to
change
the in the property table. The property "FolderForm_AllUsers" change to
"ALL"

Not sure how to write the code in VB.NET to do this? If I'm suppose to use
the MsiSetProperty function.
well I have searched everywhere for example but nothing. please help.

This should be a easy property to change within VS, but I don't see it?

thanks
GV
Phil Wilson - 21 Jun 2005 16:55 GMT
The place to start is probably with the vbscript example in the Windows
Installer SDK, WiRunSql.vbs. That tells you the sequence of events, opening
the MSI file, getting a View etc. The key is the SQL to update the table:
"UPDATE Property SET Property.Value = 'ALL' WHERE
Property.Property='FolderForm_AllUsers'"

In .NET it's awkward because you need to to P/Invoke into the Win32 APIs,
MsiOpenDatabase, MsiDatabaseOpenView, MsiViewExecute etc.
Signature

Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

> Hi all,
>
[quoted text clipped - 13 lines]
> thanks
> GV
Phil Wilson - 21 Jun 2005 23:56 GMT
p.s. VS 2005 has a project property to control whether the install is
per-user or per-system.
Signature

Phil Wilson [MVP Windows Installer]
----

> The place to start is probably with the vbscript example in the Windows
> Installer SDK, WiRunSql.vbs. That tells you the sequence of events,
[quoted text clipped - 22 lines]
>> thanks
>> GV
gv - 22 Jun 2005 17:12 GMT
thanks
Gerry

> The place to start is probably with the vbscript example in the Windows
> Installer SDK, WiRunSql.vbs. That tells you the sequence of events,
[quoted text clipped - 22 lines]
>> thanks
>> GV

Rate this thread:







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.