Indigo Rose Software
  #1  
Old 04-28-2008
Adam's Avatar
Adam Adam is offline
Indigo Rose Staff Member
 
Join Date: May 2000
Location: Indigo Rose Software
Posts: 2,154
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software