Results 1 to 3 of 3

Thread: can someone show me how to do this please

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    can someone show me how to do this please

    can someone please show me how to make my installation create a folder in C:\ called 'highprogram' and put 2 files in it, i would give these 2 files in the INNO setup wizard..

    i dont want to use iniscript becasue it gives me too many error. pls can someone show me how to do this with inno setup?
    for e.g.. look in this..

    Code:
    ; Script generated by the Inno Setup Script Wizard.
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
    
    #define MyAppName "My Program"
    #define MyAppVerName "My Program 1.5"
    #define MyAppPublisher "My Company, Inc."
    #define MyAppURL "http://www.mycompany.com"
    #define MyAppExeName "Project1.exe"
    
    [Setup]
    AppName={#MyAppName}
    AppVerName={#MyAppVerName}
    AppPublisher={#MyAppPublisher}
    AppPublisherURL={#MyAppURL}
    AppSupportURL={#MyAppURL}
    AppUpdatesURL={#MyAppURL}
    DefaultDirName={pf}\{#MyAppName}
    DefaultGroupName={#MyAppName}
    OutputBaseFilename=setup
    Compression=lzma
    SolidCompression=yes
    
    [Languages]
    Name: eng; MessagesFile: compiler:Default.isl
    
    [Tasks]
    Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
    
    [Files]
    Source: C:\Documents and Settings\Home\Desktop\hello\Project1.exe; DestDir: {app}; Flags: ignoreversion
    Source: C:\Documents and Settings\Home\Desktop\list.txt; DestDir: {app}; Flags: ignoreversion
    ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
    
    [Icons]
    Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}
    Name: {userdesktop}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; Tasks: desktopicon
    
    [Run]
    Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#MyAppName}}; Flags: nowait postinstall skipifsilent
    you see the file list.txt, i want to put it in a folder called 'highprogram' in C:\ drive!!

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: can someone show me how to do this please

    Well, you can simply specify the path for the files in the Files section. If you look at the files you already have under that section you have something called DestDir: where it then says {app}; which means the destination should be the folder the user selects to install the files in. However you can specify an absolute path there, and the destination folder will be created by the setup program if it doesn't exists.

    However I would not recommend that you create a folder like this directly on the C: drive for example since it requires that the user actually have a C: drive and that it is large enough to install anything on. It would be better if you just created a subfolder under the path the user has selected.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: can someone show me how to do this please

    Moved to Application Deployment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width