How to create a setup file for an exe.
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Thread: How to create a setup file for an exe.

  1. #1
    Join Date
    Jan 2015
    Posts
    57

    Post How to create a setup file for an exe.

    Can you please help me out how to create an setup file for an exe.

    Suppose if am having an exe I want to create a setup file in such a way that if I double click the setup file the exe as to be installed that is my own exe.


    Thanks and Regards,
    Jeevan.

  2. #2
    Join Date
    Mar 2015
    Posts
    14

    Re: How to create a setup file for an exe.

    You might want to look at something like install shield.

  3. #3
    Join Date
    May 2007
    Posts
    804

    Re: How to create a setup file for an exe.

    Or free Inno Setup.

  4. #4
    Join Date
    Mar 2015
    Posts
    14

    Re: How to create a setup file for an exe.

    Yes, that's even better!

  5. #5
    Join Date
    Jan 2015
    Posts
    57

    Re: How to create a setup file for an exe.

    Is there is any tool for creating an setup file for an exe other than Inno setup, we are trying to use smart home maker 5.03 version but its a licensed version is there any other tool for creating an exe.

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,156

    Re: How to create a setup file for an exe.

    And what's wrong with Inno Setup?
    Best regards,
    Igor

  7. #7
    Join Date
    Dec 2012
    Location
    England
    Posts
    3,190

    Re: How to create a setup file for an exe.

    is there any other tool for creating an exe.
    Yes. Several. Eg InstallShield. See http://en.wikipedia.org/wiki/List_of...ation_software
    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  8. #8
    Join Date
    Jan 2015
    Posts
    57

    Re: How to create a setup file for an exe.

    sorry nothing wrong in it, i am trying to write a script and trying to compile it I am facing some issues while compiling since I am new to the inno setup

    [code]
    [Setup]
    AppName=My Program
    AppVersion=1.5
    DefaultDirName={pf}\My Program
    DefaultGroupName=My Program

    [Types]
    Name: "full"; Description: "Full installation"
    Name: "compact"; Description: "Compact installation"
    Name: "custom"; Description: "Custom installation"; Flags: iscustom

    [Components]
    Name: "main"; Description: "Main Files"; Types: full compact custom; Flags: fixed
    Name: "help"; Description: "Help Files"; Types: full
    Name: "help\english"; Description: "English"; Types: full
    Name: "help\dutch"; Description: "Dutch"; Types: full

    [Tasks]
    Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"; Components: main
    Name: desktopicon\common; Description: "For all users"; GroupDescription: "Additional icons:"; Components: main; Flags: exclusive
    Name: desktopicon\user; Description: "For the current user only"; GroupDescription: "Additional icons:"; Components: main; Flags: exclusive unchecked
    Name: quicklaunchicon; Description: "Create a &Quick Launch icon"; GroupDescription: "Additional icons:"; Components: main; Flags: unchecked
    Name: associate; Description: "&Associate files"; GroupDescription: "Other tasks:"; Flags: unchecked

    [Dirs]
    Name: "{app}\data"
    Name: "{app}\bin"

    [Files]
    Source: "CTL3DV2.DLL"; DestDir: "{sys}"; Flags: onlyifdoesntexist uninsneveruninstall
    Source: "MYPROG.EXE"; DestDir: "{app}"
    Source: "MYPROG.CHM"; DestDir: "{app}"
    Source: "README.TXT"; DestDir: "{app}"; Flags: isreadme

    [Icons]
    Name: "{group}\My Program"; Filename: "{app}\MYPROG.EXE"; WorkingDir: "{app}"
    Name: "{group}\Uninstall My Program"; Filename: "{uninstallexe}"

    [INI]
    Filename: "MyProg.ini"; Section: "InstallSettings"; Flags: uninsdeletesection
    Filename: "MyProg.ini"; Section: "InstallSettings"; Key: "InstallPath"; String: "{app}"

    [Languages]
    Name: "en"; MessagesFile: "compilerefault.isl"
    Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"

    [Messages]
    ButtonNext=&Forward >

    [CustomMessages]
    CreateDesktopIcon=Create a &desktop icon

    [Tasks]
    Name: desktopicon; Description: "{cm:CreateDesktopIcon}"

    [LangOptions]
    en.LanguageName=English
    LanguageID=$0409
    LanguageCodePage=0
    DialogFontName=
    DialogFontSize=8
    WelcomeFontName=Verdana
    WelcomeFontSize=12
    TitleFontName=Arial
    TitleFontSize=29
    CopyrightFontName=Arial
    CopyrightFontSize=8
    RightToLeft=no

    [Registry]
    Root: HKCU; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
    Root: HKCU; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
    Root: HKLM; Subkey: "Software\My Company"; Flags: uninsdeletekeyifempty
    Root: HKLM; Subkey: "Software\My Company\My Program"; Flags: uninsdeletekey
    Root: HKLM; Subkey: "Software\My Company\My Program\Settings"; ValueType: string; ValueName: "InstallPath"; ValueData: "{app}"

    [Run]
    Filename: "{app}\INIT.EXE"; Parameters: "/x"
    Filename: "{app}\README.TXT"; Description: "View the README file"; Flags: postinstall shellexec skipifsilent
    Filename: "{app}\MYPROG.EXE"; Description: "Launch application"; Flags: postinstall nowait skipifsilent unchecked

    [UninstallDelete]
    Type: files; Name: "{win}\MYPROG.INI"

    [Run]
    Filename: "{app}\INIT.EXE"; Parameters: "/x"
    Filename: "{app}\README.TXT"; Description: "View the README file"; Flags: postinstall shellexec skipifsilent
    Filename: "{app}\MYPROG.EXE"; Description: "Launch application"; Flags: postinstall nowait skipifsilent unchecked
    [\code]

    is there is any example for creating a setup file can any one share me.

  9. #9
    Join Date
    Jan 2015
    Posts
    57

    Re: How to create a setup file for an exe.

    Quote Originally Posted by 2kaud View Post
    Yes. Several. Eg InstallShield. See http://en.wikipedia.org/wiki/List_of...ation_software

    thanks for providing me the website links.I will try to create a setup file.

  10. #10
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,156

    Re: How to create a setup file for an exe.

    Quote Originally Posted by Jeevan Rudramurthy View Post
    is there is any example for creating a setup file can any one share me.
    inno setup example scripts
    Best regards,
    Igor

  11. #11
    Join Date
    Mar 2015
    Posts
    14

    Re: How to create a setup file for an exe.

    Yup, check out the example scripts and good luck to you!

  12. #12
    Join Date
    Jan 2015
    Posts
    57

    Re: How to create a setup file for an exe.

    I have developed an setup file using inno setup .iss file so the application I am running is through inno setup is there any possibility to run this .iss file like exe not through inno setup if I double click it should run.

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center