|
#1
|
||||
|
||||
|
install files to the Windows directory
Question
How do I install files to the Windows directory Answer This article describes how to install files to the Windows\System directory. All Windows operating systems have a "Windows" directory (folder) where most of the operating system and many shared files on the operating system are stored. Normally this directory is either located at "C:\Windows" (Windows 95,98,ME,XP) or "C:\WINNT" (Windows NT,2000), although it can be located elsewhere. Normally, it is not necessary to install your program's files to the Windows directory or a subdirectory of the Windows directory. Here are a few cases in which you may need to do so: - You are installing a shared DLL or OCX (ActiveX control) on the system (usually to the Windows\System directory.) - You are installing a font. (usually to the Windows\Fonts directory.) - You are installing a screen saver. - You are installing a control panel application. - You are installing a program that needs to be in the system path so that it can be run without a directory specifier. Of course, there are other reasons as well, but they are less common. As a rule, if you do not have a good reason for installing to the Windows directory or a subdirectory of the Windows directory, don't. All of that being said, to tell Setup Factory to install a file to the Windows directory, do the following: - Select the file that you want to install to the Windows directory on Setup Factory's main screen and select Project | File Properties from the menu. - Go to the General tab of the File Properties screen. - Set the Install file to this location field to be "%WindowsFolder%" (no quotes) and click OK. %WindowsFolder% is a Setup Factory variable that represents the user's Windows directory at design-time. We need to use a variable because at design-time we do not know what the user's Windows directory will be at run-time. When the user runs your install on their system, the variable will expand to the proper directory and the file will be installed there. If the file that you are installing is a shared DLL (a file that is used by more than one program), make sure that you turn on the Shared/System File option on the Advanced tab of the File Properties screen. This will ensure that your uninstall program does not remove the file if it is being used by other programs. MORE INFORMATION Program Reference | Variables | Session Variables Last edited by Adam; 04-29-2008 at 01:32 PM. |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INFO: JET and MDAC (Complete) Runtime Notes | Desmond | Setup Factory 6.0 Knowledge Base | 0 | 11-28-2003 09:35 AM |
| INFO: JET 4.0 SP7-SP8 Runtime Notes | Desmond | Setup Factory 6.0 Knowledge Base | 0 | 11-28-2003 09:34 AM |
| HOWTO: Download and Install Files from the Web | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-23-2002 02:16 PM |
| HOWTO: Conditionally Install Files Based on OS | Support | Setup Factory 6.0 Knowledge Base | 0 | 10-10-2002 04:03 PM |
| HOWTO: Install Files to the Windows Directory | Support | Setup Factory 6.0 Knowledge Base | 0 | 09-18-2002 03:33 PM |
All times are GMT -6. The time now is 01:57 AM.








Linear Mode

