Install to Target Machines System32 folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to know the way to install a file to the users Target Machines
System32 folder, without prompting the user using VS.net 2003, Visual
Studios.net Installer, and VB.net language. I would like to know how to get
around if the user changed drive letters. I now have the default location for
the Application Folder set to c:\Windows\System32. I am installing a
screensaver.

Thank you
 
Hello,

You can creae a folder in the installer project. Make sure the Property of
the folder is set as "SystemFolder". Any contents that you put in the
"SystemFolder" will automatically be sent to the SYSTEM folder regardless of
the OS drive.

Regards
Vipul Patel
C# MVP
 
Mr. Patel,

I have done as you stated but still have a problem. When the .msi starts, it
still asks the user to install to the program files folder. Unless i change
the default location from [ProgramFilesFolder][Manufacturer]\[ProductName] to
c:\window\system32 in the Application folder properties it continues to do
so. I have tried to change the default location to
environment.systemdirectory and also [SystemFolder] but no luck. What can i
put in this field to make is act as "SystemFolder" property.

Thank you
 
Since you only want to install to the System directory, you can do the
following:

Go to View > Editor > File System.

In the left pane right click and add a Special Folder "System Folder". copy
your files to this folder. Leave the folder "Application Folder" empty.

Next go to View > Editor > User Interface.

Delete the "Installation Folder" entry under Install > Start.

(PLEASE NOTE THAT ONCE YOU DELETE THIS, You cannot get back the installation
folder prompt easily. For that you will need to have the Windows Installer
SDK, and involves advanced programming).


Hope this solves your doubts.

Regards
Vipul

jaxjon said:
Mr. Patel,

I have done as you stated but still have a problem. When the .msi starts, it
still asks the user to install to the program files folder. Unless i change
the default location from [ProgramFilesFolder][Manufacturer]\[ProductName] to
c:\window\system32 in the Application folder properties it continues to do
so. I have tried to change the default location to
environment.systemdirectory and also [SystemFolder] but no luck. What can i
put in this field to make is act as "SystemFolder" property.

Thank you

Vipul Patel said:
Hello,

You can creae a folder in the installer project. Make sure the Property of
the folder is set as "SystemFolder". Any contents that you put in the
"SystemFolder" will automatically be sent to the SYSTEM folder regardless of
the OS drive.

Regards
Vipul Patel
C# MVP
 
Back
Top