Creating a windows installer to copy file folders

9860 pts.
Microsoft Windows
Windows administration
windows installer
My dos application needs to be copied to a specific folder with other files. How can I create an installer that will copy these files to the correct locations for me and create a shortcut on the users desktop to it?

Software/Hardware used:

Answer Wiki

Thanks. We'll let you know when a new response is added.

You didn’t mention what version of Windows u have used…. Because, creating windows installer works on Windows Server 2003, Windows Server 2003 R2, with SP1 & SP2 (if I am not wron

I am providing a sample or representing as an example, u will have to set your own.
The steps for creating a simple Windows Installer package are as follows:

1. Plan the installation.

List the general installation layout, including the files to install, the source path, and the target path. In addition, list all registry-related operations. Place the .exe file to install and all supporting files in a specific directory.

2. Import a blank database.

To create a Windows Installer package, you copy (or create with a 3rd party software tool) a Windows Installer database file.
A blank installation database, Schema.msi, is provided with the Microsoft Platform Software Development Kit (SDK) components for Windows Installer developers.
The SDK also provides a partially blank database, Uisample.msi, which contains the suggested sequence tables and data required for a simple user interface.
Copy Uisample.msi into the directory that contains the .exe file to be installed. The installation database file and the source files must be located at the root of the same directory. else, you will receive Setup errors.

3. Specify the directory structure.

The installer stores information about the installation directory structure in the Directory table. Use any database editor to add information to the Directory table.

4. List the constituent components.

List all components that are part of the installation. A component can be a set of files or resources that are added to the component table of the database.

5. Specify files and file attributes.

Add all relevant files to the Files table.

6. Enter source media information in the Media table.

The Media table describes the set of disks that make up the source media for the installation.

7. Define features.

8. Define feature-to-component relationships.

Use the FeatureComponents table to define the relationships between features and components.

9. Add registry information and shortcut properties.

The Registry table and related tables of the installation database hold the registry information that must be written in the system registry for the application.

10. Specify properties.

Windows Installer properties are global variables that the installer uses during an installation. You do not have to define all properties in every package. A small set of properties r required.

Discuss This Question: 1  Reply

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Spadasoe
    Use PSexec to copy the files needed and to copy a shortcut to the all users desktop. I use this quite often
    5,130 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: