Results 1 to 26 of 26

Thread: Inno Setup Missing Icons

  1. #1

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Inno Setup Missing Icons

    This is my first application I have used Inno setup with, so these questions may be a bit simple, but ....

    I used the Inno Script Setup Wizard for this.

    I have selected to let the user, on installation, add a desktop shortcut and a quick launch shortcut.
    Both of these don't have any icon, and neither does the shortcut in the start menu.

    I have given the path for the icon when the wizard asks for it.
    The only one that has my icon is the uninstall menu option!

    Also, I would like to change the Uninstall icon, but cannot see where to do this.

    I have never used any kind of script language before I'm afraid.

    Attached is my script, which I haven't edited in any way so far.
    Attached Files Attached Files
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    The line in your script in the ICONS section is what you want to change...
    Code:
    Name: "{group}\{cm:UninstallProgram,Membership Organiser}"; Filename: "{uninstallexe}"

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    send me your vbp and exe (zipped) and I will give you an example of what your script should look like.

  4. #4

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    send me your vbp and exe (zipped) and I will give you an example of what your script should look like.
    Thanks randem, I will do this.

    Do you mean just the VBP file of the whole project?
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Yes...

  6. #6

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    Yes...
    I take it yes means just the vbp file
    Last edited by aikidokid; Nov 26th, 2007 at 10:54 PM.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Yes, with the exe...

  8. #8

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    Yes, with the exe...
    Yeah, both are in there. Thanks
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Here is what I get using Inno Script. Mind you I don't have all of your support files.
    Code:
    ; Inno Script Version 8.0  Build 0
    ; Randem Systems, Inc.
    ; Copyright 2003-2008
    ; Website:  http://www.***********
    ; Support:  http://www.***********/cgi-bin/discus/discus.cgi
    ; OS: Windows XP 5.1 build 2600 (Service Pack 2)
    
    ; Date: November 26, 2007
    
    ;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
    ;     Visual Basic Project File (.vbp):   E:\Works\aikidokid\InnoSetup\InnoSetup\MO.vbp
    ; Inno Setup Script Output File (.iss):   E:\Works\aikidokid\InnoSetup\InnoSetup\MO Release.iss
    ;         Script Template Files (.tpl):   C:\Documents and Settings\Ralph James\Application Data\Randem Systems\**********\Templates\Release.tpl
    
    ; ------------------------
    ;        References
    ; ------------------------
    
    ; Visual Basic For Applications - (MSVBVM60.DLL)
    ; Standard OLE Types - (OLEPRO32.DLL)
    ; OLE Automation - (STDOLE2.TLB)
    ; vbSysTrayTools - (vbSysTrayTools.dll)
    ; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)
    ; Microsoft Forms 2.0 Object Library - (FM20.DLL)
    
    
    ; --------------------------
    ;        Components
    ; --------------------------
    
    ; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
    ; Microsoft FlexGrid Control 6.0 (SP6) - (MSFLXGRD.OCX)
    ; Microsoft Rich Textbox Control 6.0 (SP6) - (RichTx32.ocx)
    ; Microsoft MAPI Controls 6.0 - (MSMAPI32.OCX)
    ; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
    ; Microsoft Calendar Control 8.0 - (MSCAL.OCX)
    ; Microsoft Windows Common Controls-2 6.0 (SP6) - (Mscomct2.ocx)
    
    
    [Setup]
    AppId=MembershipOrganiser Release
    
    ;-----------------------------------------------------------------------------------------------------
    ; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
    ;-----------------------------------------------------------------------------------------------------
    
    AppName=MembershipOrganiser
    AppVerName=MembershipOrganiser 3.3.0
    AppPublisher=DeftechSolutions
    
    ;-----------------------------------------------------------------------------------------------------
    
    AppVersion=3.3.0
    VersionInfoVersion=3.3.0
    AllowNoIcons=no
    DefaultGroupName=Membership Organiser
    DefaultDirName={pf}\MO
    AppCopyright=
    PrivilegesRequired=Admin
    MinVersion=4.0,4.0
    Compression=lzma
    OutputBaseFilename=MO330Release
    
    [Tasks]
    Name: AutoOSUpdater; Description: Install MDAC's for Database Operations; GroupDescription: Install MDAC's:
    
    [Files]
    Source: e:\server data\randem\develop\support\scripts\output\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
    Source: vbsystraytools.dll; DestDir: ; Flags:  restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\fm20.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\msflxgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\richtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\msmapi32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: c:\program files\microsoft office\office\mscal.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\server data\randem\develop\deployable system files\mscomct2.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile; 
    Source: e:\works\aikidokid\innosetup\innosetup\mo.exe; DestDir: {app}; Flags:  restartreplace sharedfile; 
    
    [INI]
    Filename: {app}\MO.url; Section: InternetShortcut; Key: URL; String: 
    
    [Icons]
    Name: {group}\MembershipOrganiser; Filename: {app}\MO.exe; WorkingDir: {app}
    Name: {group}\{cm:ProgramOnTheWeb, MembershipOrganiser}; Filename: {app}\MO.url
    Name: {group}\{cm:UninstallProgram, MembershipOrganiser}; Filename: {uninstallexe}
    
    [Run]
    Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
    Filename: {app}\MO.exe; Description: {cm:LaunchProgram, MembershipOrganiser}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
    
    [UninstallDelete]
    Type: files; Name: {app}\MO.url
    
    [Registry]

  10. #10

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Firstly, thanks very much for this randem, it's much appreciated

    Looking through the script, I can see I have to obviously change a lot of the paths, so just checking I have the right idea:

    Code:
    E:\Works\aikidokid\InnoSetup\InnoSetup\MO.vbp
    Would become my folder path where the project is stored
    C:\Documents and Settings\Andrew\My Documents\VB6\MO\MO.vbp

    Code:
    [Tasks]
    Name: AutoOSUpdater; Description: Install MDAC's for Database Operations; GroupDescription: Install MDAC's:
    Does this mean that I would include the AutoOSUpdater in my package, and this code would auto run your app.
    I have downloaded "Windows XP (19 mb) - Last Updated 9/19/2007" from your site, as this app will only be going onto a few PC's with XP on them, so I have to specify the "_XP" part, but where exactly?
    On this line below?

    Code:
    [Files]
    Source: e:\server data\randem\develop\support\scripts\output\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
    I can see what this line does, I think, but what would be the path here? Would it be the same path as I enter for the folder I store the AutoOSUpdater file?
    C:\Documents and Settings\Andrew\My Documents\VB6\MO\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater

    Code:
    Source: e:\server data\randem\develop\deployable system files\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Would this now be my system files folder?
    C:\WINDOWS\system32\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;

    Code:
    Source: vbsystraytools.dll; DestDir: ; Flags:  restartreplace sharedfile;
    The vbsystraytools.dll is saved and registered in the above folder, so would the path be the same.


    Lastly, I would be adding 1 image and a blank database, from the same folder the vbp file is in. I take it I would have to add something like the following to the 'Files' section:
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Membership.mdb
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Image1.jpg


    After reading your "Installer Problems" page you posted for me to look at in another thread, I never realised there was so much to packaging and deploying an application!!
    Last edited by aikidokid; Nov 27th, 2007 at 09:24 AM.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  11. #11

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Ok been working on this for a few hours, reading help files etc and so far come up with this which is close - I think
    I have underlined what I have edited.
    Code:
    ; Inno Script Version 8.0  Build 0
    ; Randem Systems, Inc.
    ; Copyright 2003-2008
    ; Website:  http://www.***********
    ; Support:  http://www.***********/cgi-bin/discus/discus.cgi
    ; OS: Windows XP 5.1 build 2600 (Service Pack 2)
    
    ; Date: November 26, 2007
    
    ;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
    ;     Visual Basic Project File (.vbp):   E:\Works\aikidokid\InnoSetup\InnoSetup\MO.vbp
    ; Inno Setup Script Output File (.iss):   E:\Works\aikidokid\InnoSetup\InnoSetup\MO Release.iss
    ;         Script Template Files (.tpl):   C:\Documents and Settings\Ralph James\Application Data\Randem Systems\**********\Templates\Release.tpl
    
    ; ------------------------
    ;        References
    ; ------------------------
    
    ; Visual Basic For Applications - (MSVBVM60.DLL)
    ; Standard OLE Types - (OLEPRO32.DLL)
    ; OLE Automation - (STDOLE2.TLB)
    ; vbSysTrayTools - (vbSysTrayTools.dll)
    ; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)
    ; Microsoft Forms 2.0 Object Library - (FM20.DLL)
    
    
    ; --------------------------
    ;        Components
    ; --------------------------
    
    ; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
    ; Microsoft FlexGrid Control 6.0 (SP6) - (MSFLXGRD.OCX)
    ; Microsoft Rich Textbox Control 6.0 (SP6) - (RichTx32.ocx)
    ; Microsoft MAPI Controls 6.0 - (MSMAPI32.OCX)
    ; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
    ; Microsoft Calendar Control 8.0 - (MSCAL.OCX)
    ; Microsoft Windows Common Controls-2 6.0 (SP6) - (Mscomct2.ocx)
    
    
    [Setup]
    AppId=MembershipOrganiser Release
    
    ;-----------------------------------------------------------------------------------------------------
    ; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
    ;-----------------------------------------------------------------------------------------------------
    
    AppName=MembershipOrganiser
    AppVerName=MembershipOrganiser 3.2.1.0
    AppPublisher=DeftechSolutions
    
    ;-----------------------------------------------------------------------------------------------------
    
    AppVersion=3.2.1.0
    VersionInfoVersion=3.2.1.0
    AllowNoIcons=no
    DefaultGroupName=Membership Organiser
    DefaultDirName={pf}\MO
    AppCopyright=
    PrivilegesRequired=Admin
    MinVersion=4.0,4.0
    Compression=lzma
    OutputBaseFilename=MO3210Release
    
    [Tasks]
    Name: AutoOSUpdater; Description: Install MDAC's for Database Operations; GroupDescription: Install MDAC's:
    
    [Files]
    Source: C:\Documents and Settings\Andrew\My Documents\Installed Programs\DEVELOPMENT TOOLS\vb_dcom_mdac_jet_autosetup_XP.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\vbsystraytools.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
    Source: C:\WINDOWS\system32\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\dll Files\fm20.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\WINDOWS\system32\msflxgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\WINDOWS\system32\richtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\WINDOWS\system32\msmapi32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\WINDOWS\system32\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\mscal.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\WINDOWS\system32\mscomct2.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\mo.exe; DestDir: {app}; Flags:  restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Dojo.jpg; DestDir: {app}; Flags:  restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Membership.mdb; DestDir: {app}; Flags:  restartreplace sharedfile;
    
    
    [INI]
    Filename: {app}\MO.url; Section: InternetShortcut; Key: URL; String:
    
    [Icons]
    Name: {group}\MembershipOrganiser; Filename: {app}\MO.exe; WorkingDir: {app}
    Name: {group}\{cm:ProgramOnTheWeb, MembershipOrganiser}; Filename: {app}\MO.url
    Name: {group}\{cm:UninstallProgram, MembershipOrganiser}; Filename: {uninstallexe}
    
    [Run]
    Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
    Filename: {app}\MO.exe; Description: {cm:LaunchProgram, MembershipOrganiser}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
    
    [UninstallDelete]
    Type: files; Name: {app}\MO.url
    
    [Registry]
    So, questions!
    1. How do I create a desktop shortcut?
    2. How do I create a Quick Launch shortcut?
    3. Why don't I have my icon displayed for the start menu shortcut, and how to use this icon for the 2 shorcuts above ( 1 + 2 )
    4. Do I need to change "String" to my url address?


    Quote Originally Posted by randem
    Here is what I get using Inno Script. Mind you I don't have all of your support files.
    I am installing my app on Virtual PC 2007, as I have no other test machine to use.
    I am guessing your comments above may be causing these two errors;
    Firstly when I run the app, in the form load there is code to display a picture box and image on the MDI form which is a class I downloaded from this forum.
    The error is:
    Error Number 429 -- ActiveX Component can't create object

    Then when I go to minimise the program to the system tray, I use the vbsystraytools.dll added here in the script:
    Code:
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\vbsystraytools.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
    I get the error:
    Error Number 91 -- Object variable or Block With Variabel not set
    In this code:
    Code:
    Private Sub HideForm()
    On Error GoTo ErrTrap
    
    If lngSysTray = 1 Then  '<--this is registry value for option to minimise to systemtray
        With mobjSysTray.Menu
            .Item("Show").Enabled = True
            .Item("Hide").Enabled = False
        End With
        Me.Hide
    End If
    
    If NumInsDue = 0 Then
        mobjSysTray.ToolTipText = "There are currently no students" & vbCrLf & _
                                  " with insurance due."
    ElseIf NumInsDue = 1 Then
        mobjSysTray.ToolTipText = "There is " & NumInsDue & " student " & vbCrLf & _
                                  "who's insurance is due soon"
    Else
        mobjSysTray.ToolTipText = "There are " & NumInsDue & " students " & vbCrLf & _
                                  "who's insurance is due soon"
    End If
    
    Exit Sub
    
    ErrTrap:
    Ahhh, I've got a headache now
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  12. #12
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Well, if you just ran Inno Script you would not have that headache and would not need to edit the script just so...

    And where do you define mobjSysTray

  13. #13

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    Well, if you just ran Inno Script you would not have that headache and would not need to edit the script just so...
    I am confused now as to what I should be doing!

    The script you posted for me had all your paths for your computer, so I had to change them.
    I added two more files I wanted to be included, an image and a blank database.
    And I added "{sys}" to the DestDir for the vbsystraytools.dll

    Isn't this correct?

    Quote Originally Posted by randem
    And where do you define mobjSysTray
    This is declared in the General section of the MDI form
    Code:
    'for the system tray code
    Public WithEvents mobjSysTray As vbSysTrayTools.SysTray
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  14. #14
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    It's a start but you are guessing... The script I created on my machine is just for direction because I do not have all the files you need to deploy. You will need to add them to the script. It would be far better to use a tool to do this than by attempting to do it manually which is prone to mistakes. With the tool all the shortcut would be in the script automatically. I just did a quick run thru to get you started.

    The simple way I posted, but you can take the hard way if you like...

  15. #15

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    It's a start but you are guessing...
    Correct What is this language?
    Quote Originally Posted by randem
    The script I created on my machine is just for direction because I do not have all the files you need to deploy. You will need to add them to the script. It would be far better to use a tool to do this than by attempting to do it manually which is prone to mistakes. With the tool all the shortcut would be in the script automatically. I just did a quick run thru to get you started.
    Ok, I understand. Thanks
    What tool would this be? Is it one from your site?

    Quote Originally Posted by randem
    The simple way I posted, but you can take the hard way if you like...
    No, the simple way sounds good.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  16. #16
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Yes, run Inno Script on your project and it will create 99% of your script for you then post it and we can go from there when I re-awake...

  17. #17

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    Yes, run Inno Script on your project and it will create 99% of your script for you then post it and we can go from there when I re-awake...
    OK, downloading it now.
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  18. #18

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    OK, 6hrs later and this is what I have. It seems to work. The only thing I can see that is missing is an icon in the start menu for the internet shortcut.
    Is this possible?
    ; ********** Version 7.3 Build 2 Trial
    ; Randem Systems, Inc.
    ; Copyright 2003-2007
    ; Website: http://www.***********
    ; Support: http://www.***********/cgi-bin/discus/discus.cgi
    ; OS: Windows XP 5.1 build 2600 (Service Pack 2)

    ; Date: November 28, 2007

    ; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 7\VB 6 Redist Files\
    ; Visual Basic Project File (.vbp): C:\Documents and Settings\Andrew\My Documents\VB6\MO\MO.vbp
    ; Inno Setup Script Output File (.iss): C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\MembOrg321 Release.iss
    ; Script Template Files (.tpl): C:\Program Files\Randem Systems\**********\********** 7\Templates\Release.tpl
    ; : C:\Program Files\Randem Systems\**********\********** 7\Templates\VBRuntime.tpl
    ; : C:\Program Files\Randem Systems\**********\********** 7\Templates\Vista.tpl

    ; ------------------------
    ; References
    ; ------------------------

    ; Visual Basic For Applications - (MSVBVM60.DLL)
    ; OLE Automation - (STDOLE2.TLB)
    ; vbSysTrayTools - (vbSysTrayTools.dll)
    ; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)


    ; --------------------------
    ; Components
    ; --------------------------

    ; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
    ; Microsoft FlexGrid Control 6.0 - (MSFLXGRD.OCX)
    ; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
    ; Microsoft MAPI Controls 6.0 - (MSMAPI32.OCX)
    ; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
    ; Microsoft Windows Common Controls-2 6.0 (SP4) - (Mscomct2.ocx)


    [Setup]
    AppId=MembershipOrganiser Release

    ;-----------------------------------------------------------------------------------------------------
    ; Taken from VBP Project File Parameters AppName, AppName AppVersion and Company
    ;-----------------------------------------------------------------------------------------------------

    AppName=MembershipOrganiser
    AppVerName=MembershipOrganiser 3.2.1
    AppPublisher=DeftechSolutions

    ;-----------------------------------------------------------------------------------------------------

    AppPublisherURL=www.deftechsolutions.co.uk
    AppSupportURL=www.deftechsolutions.co.uk/support
    AppVersion=3.2.1
    VersionInfoVersion=3.2.1
    AllowNoIcons=no
    InfoAfterFile=C:\Documents and Settings\Andrew\My Documents\VB6\MO\InfoAfter 24.11.2007.txt
    LicenseFile=C:\Documents and Settings\Andrew\My Documents\VB6\MO\Membership Organiser Setup License.rtf
    UninstallDisplayIcon=uninstallexe
    DefaultGroupName=Membership Organiser
    DefaultDirName={code:GetAppFolder}\
    AppCopyright=
    PrivilegesRequired=None
    MinVersion=4.1,4.0
    Compression=lzma
    OutputBaseFilename=MembershipOrganiser.3.2.1Release

    [Tasks]
    Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
    Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
    Name: AutoOSUpdater; Description: Install MDAC's for Database Operations; GroupDescription: Install MDAC's:

    [Files]
    Source: C:\Documents and Settings\Andrew\My Documents\Installed Programs\DEVELOPMENT TOOLS\vb_dcom_mdac_jet_autosetup_xp.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\dojo.jpg; DestDir: {app}; Flags: ignoreversion;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\membership.mdb; DestDir: {app}; Flags: ignoreversion;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\vbsystraytools.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\mscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\msflxgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\msmapi32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Copy dll files\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\mo.exe; DestDir: {app}; Flags: restartreplace sharedfile;
    Source: C:\Documents and Settings\Andrew\My Documents\VB6\MO\Inno\Manifest\MO.exe.manifest; DestDir:{app}; Flags: ignoreversion

    [INI]
    Filename: {app}\MO.url; Section: InternetShortcut; Key: URL; String: www.deftechsolutions.co.uk/support

    [Icons]
    Name: {group}\MembershipOrganiser; Filename: {app}\MO.exe; WorkingDir: {app}
    Name: {group}\{cm:ProgramOnTheWeb, MembershipOrganiser}; Filename: {app}\MO.url
    Name: {group}\{cm:UninstallProgram, MembershipOrganiser}; Filename: {uninstallexe}
    Name: {commondesktop}\MembershipOrganiser; Filename: {app}\MO.exe; Tasks: desktopicon; WorkingDir: {app}
    Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\MembershipOrganiser; Filename: {app}\MO.exe; Tasks: quicklaunchicon; WorkingDir: {app};

    [Run]
    Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup_XP.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: AutoOSUpdater
    Filename: {app}\MO.exe; Description: {cm:LaunchProgram, MembershipOrganiser}; Flags: nowait postinstall skipifsilent; WorkingDir: {app}

    [UninstallDelete]
    Type: files; Name: {app}\MO.url

    [Registry]

    [Code]
    function GetAppFolder(Param: String): String;
    begin
    if InstallOnThisVersion('0,6', '0,0') = irInstall then
    Result := 'C:\Users\Public\' + ExpandConstant('{username}')
    else
    Result := ExpandConstant('{pf}');
    end;
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  19. #19
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Go to Settings->Parameter and check off the icons that you want and re-run Inno Script.

    AllowNoIcons
    DesktopIcon
    QuickLaunchIcon

    And on the main screen check Include URL Links
    Last edited by randem; Nov 28th, 2007 at 03:16 PM.

  20. #20

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    On the Parameter screen just check off the icons that you want and re-run Inno Script.

    AllowIcons
    DesktopIcon
    I've got the three icons, for the quick launch, the desktop and the start menu. I have the uninstall icon as well.
    It's just the icon for the web link in the start menu is the same sort of icon used by windows when the file is unknown.

    Just taken a look .....
    It's the same as the one in the ********** start menu web shortcut!

    Can't this be changed?
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  21. #21
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    You need to use the parameter screen and fill in the icon image files

    WizardImageFile
    WizardSmallImageFile
    UnInstallDisplayIcon

  22. #22

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    Quote Originally Posted by randem
    You need to use the parameter screen and fill in the icon image files

    WizardImageFile
    WizardSmallImageFile
    UnInstallDisplayIcon
    The first two are for the images during the setup process in Inno setup aren't they? I tried adding .ico but it didn't seem to allow this extention.
    I will first have to create a couple of images.

    For the UnInstallDisplayIcon I copied what was in your first example: (uninstallexe)
    Could I perhaps change this constant 'ProgramOnTheWeb' to something like 'Internet Explorer'
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

  23. #23
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Inno Setup need bmp files...

  24. #24
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    Don't copy from one script to another. That is one sure way to screw things up... Let the tool handle things because when you need to re-run it you will lose all those changes that you are not sure of in the first place. It you need to add things to the script use the template feature to add a new template or change and existing one by double clicking on it.

  25. #25
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Inno Setup Missing Icons

    BTW: I was reading a thread of yours about dependencies. If you look at the run and debug logs after the run you will be able to tell what dll/ocx's are used by other dll/ocx's...

  26. #26

    Thread Starter
    Frenzied Member aikidokid's Avatar
    Join Date
    Aug 2002
    Location
    Bristol, UK
    Posts
    1,968

    Re: Inno Setup Missing Icons

    OK, next questions now.

    Is the uninstall supposed to NOT delete the registry entries?

    The Text for the Desktop and Quick Launch shortcuts is MembershipOrganiser - without the space between the two words. How do I change this?

    Still this problem you posted at yesterday (ActiveX Can't create object) I posted the line you asked for.

    EDIT
    Never mind the first question. After reading some help files, it will, but oly if Inno setup creates them. I have it coded in my app to create them.

    Never mind the second question, I sorted this one out! Pretty straight forward actually

    Never mind the third question, it's answered in the thread posted above.
    Last edited by aikidokid; Dec 1st, 2007 at 12:54 PM. Reason: Update progress
    If somebody helps you, take time to RATE the post. I do.

    "FAILURE IS NOT AN OPTION. It comes bundled with the software."

    Below are some of the threads that have helped me along the way:

    CodeBank submission:
    Listview Backcolor (without subclassing)

    Loading Treeview Nodes From A Database, Creating Registry Keys, Count Number of Lines in TextBox , Excellent RichTextBox Tricks & Tips
    Ideas & Screen Shots For A Code Library App
    How to do Data validation in Excel, Conditional Formating in Excel

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