Results 1 to 16 of 16

Thread: Adding multiple icons to desktop with PDW?

  1. #1

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Question Adding multiple icons to desktop with PDW?

    Hey all,

    Does anyone know how to add multiple icons (5) to the desktop during installation? The code below only puts the first one listed on the desktop:

    Code:
    ; Script generated by the Inno Setup Script Wizard.
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
    
    [Setup]
    AppName=BiskSuite
    AppVerName=BiskSuite 1.0
    AppPublisher=Bisk Education
    AppPublisherURL=http://www.bisk.com
    AppSupportURL=http://www.bisk.com
    AppUpdatesURL=http://www.bisk.com
    DefaultDirName={pf}\BiskSuite
    DefaultGroupName=BiskSuite
    AllowNoIcons=yes
    LicenseFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\LicenseAgreement.txt
    InfoAfterFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\README.txt
    OutputBaseFilename=setup
    SetupIconFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Construction\BiskSuite.ico
    Compression=lzma
    SolidCompression=yes
    
    [Tasks]
    Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
    Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
    
    [Files]
    Source: "I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\BiskSuite.exe"; DestDir: "{app}"; Flags: ignoreversion
    Source: "I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
    ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
    
    [Icons]
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSuite.exe"
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSage\BiskSage.exe"
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSite\BiskSite.exe"
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskStatus\BiskStatus.exe"
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskScribe\BiskScribe.exe"
    Name: "{group}\{cm:UninstallProgram,BiskSuite}"; Filename: "{uninstallexe}"
    Name: "{userdesktop}\BiskSuite"; Filename: "{app}\BiskSuite.exe"; Tasks: desktopicon
    Name: "{userdesktop}\BiskSage"; Filename: "{app}\BiskSage.exe"; Tasks: desktopicon
    Name: "{userdesktop}\BiskSite"; Filename: "{app}\BiskSite.exe"; Tasks: desktopicon
    Name: "{userdesktop}\BiskStatus"; Filename: "{app}\BiskStatus.exe"; Tasks: desktopicon
    Name: "{userdesktop}\BiskScribe"; Filename: "{app}\BiskScribe.exe"; Tasks: desktopicon
    Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\BiskSuite"; Filename: "{app}\BiskSuite.exe"; Tasks: quicklaunchicon
    
    [Run]
    Filename: "{app}\BiskSuite.exe"; Description: "{cm:LaunchProgram,BiskSuite}"; Flags: nowait postinstall skipifsilent
    Thanks in advance,
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    First of all you are showing an Inno Setup Script not a PDW script. secondly your needs would be better met using ********** to help create your Inno Setup Script. It will give you icons settings that you can use to create what you want.

  3. #3

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Re: Adding multiple icons to desktop with InnoSetup?

    Quote Originally Posted by randem
    Xman51,

    First of all you are showing an Inno Setup Script not a PDW script. secondly your needs would be better met using ********** to help create your Inno Setup Script. It will give you icons settings that you can use to create what you want.
    Sorry 'bout the name flub...

    In your second bit is this what you're talking about:

    The basic procedure to run **********:



    1. Install **********. http://www.***********/**********.html
    2. Install Inno Setup (********** uses Inno Setup). http://www.jrsoftware.org
    3. Select your vbp, exe, and application folder and the name of the output .iss file (.tpl file is optional).
    4. Press OK to convert your project file.
    5. Edit your script (.iss) with Inno Setup.
    6. Compile your script with Inno Setup. </OL>
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    Yes, those are the basics. You can add any additional files or folders with it also. That will get you started for now. Don't forget to download and update your Unsafe file list and replace your old one.

    ISTool is very helpful also.

  5. #5

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Re: Adding multiple icons to desktop with PDW?

    Quote Originally Posted by randem
    Xman51,

    Yes, those are the basics. You can add any additional files or folders with it also. That will get you started for now. Don't forget to download and update your Unsafe file list and replace your old one.

    ISTool is very helpful also.
    That is kewl and all but I don't understand step 3...
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    What is there to understand? Once you create a ********** project the screen is self explanatory. You use the buttons to browse to selct your vbp, project file and location to create your iss file.

  7. #7

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Question Re: Adding multiple icons to desktop with PDW?

    Quote Originally Posted by randem
    Xman51,

    What is there to understand? Once you create a ********** project the screen is self explanatory. You use the buttons to browse to selct your vbp, project file and location to create your iss file.
    Ok...let me clarify, I have 5 executable programs I have built in Visual Basic 6. I am trying to build an installation file that creates 5 separate icons on the desktop for those files. How can this InnoSetup or ********** program do that for me? I already have it so that it creates subfolders for all of the applications. I did that with InnoSetup before the first post. The only problem I have is the desktop icon situation.

    Thank you,
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    I see the confusion. You are not using **********, you are using Inno Setup Wizard. If you use ********** there would be a default set of icons created for you and all you would need to do is to duplicate the lines and change the names.

    But you could use this for help and just duplicate it for each icon

    Code:
    [Icons]
    Name: {group}\YourAppName; Filename: {app}\YourApp.exe; WorkingDir: {app}
    Name: {userdesktop}\YourAppName; Filename: {app}\YourApp.exe; WorkingDir: {app}
    Last edited by randem; May 18th, 2005 at 04:28 PM.

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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    Post your .iss script.

  10. #10

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Arrow Re: Adding multiple icons to desktop with PDW?

    Quote Originally Posted by randem
    Xman51,

    Post your .iss script.
    This is what I currently have...I did use the Inno Setup Wizard:

    Code:
    ; Script generated by the Inno Setup Script Wizard.
    ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
    
    [Setup]
    AppName=BiskSuite
    AppVerName=BiskSuite 1.0
    AppPublisher=Bisk education
    AppPublisherURL=http://www.bisk.com
    AppSupportURL=http://www.bisk.com
    AppUpdatesURL=http://www.bisk.com
    DefaultDirName={pf}\BiskSuite
    DisableDirPage=yes
    DefaultGroupName=BiskSuite
    DisableProgramGroupPage=yes
    LicenseFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Construction\INO Builder\LicenseAgreement.txt
    InfoAfterFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Construction\INO Builder\README.txt
    OutputBaseFilename=BiskSuite
    SetupIconFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Construction\BiskSuite2.ico
    Compression=lzma
    SolidCompression=yes
    
    [Tasks]
    Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
    
    [Files]
    Source: "I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
    
    [Icons]
    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSuite.exe"
    Name: "{group}\{cm:UninstallProgram,BiskSuite}"; Filename: "{uninstallexe}"
    Name: "{userdesktop}\BiskSuite"; Filename: "{app}\BiskSuite.exe"; Tasks: desktopicon
    
    [Run]
    Filename: "{app}\BiskSuite.exe"; Description: "{cm:LaunchProgram,BiskSuite}"; Flags: nowait postinstall skipifsilent
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    You really should use **********. But for now you can just copy this line and change the name of the file.

    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSuite.exe"

  12. #12

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Unhappy Re: Adding multiple icons to desktop with PDW?

    Quote Originally Posted by randem
    Xman51,

    You really should use **********. But for now you can just copy this line and change the name of the file.

    Name: "{group}\BiskSuite"; Filename: "{app}\BiskSuite.exe"
    Nope, that didn't work...and i tried that before. Still only makes one icon (the first) on the desktop.
    Xman51
    Area 51


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

    Re: Adding multiple icons to desktop with PDW?

    Xman51,

    Are you actually reading what I write????? I stated you will need to do that manually and I gave you examples, told you what and where to do it.

    you would need to do is to duplicate the lines and change the names.
    you can just copy this line and change the name of the file.
    just duplicate it for each icon

  14. #14
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Adding multiple icons to desktop with PDW?

    just a side note, you may want to think about making a setup package that actually puts 5 icons on the desktop... unless it is totally called for. I know I get pissed when I install an app and it floods my desktop with icons.

    I personally would make a launcher app that a single icon opens, and then you can open the other applications from this launcher menu. Just a suggestion though.

  15. #15

    Thread Starter
    Lively Member Xman51's Avatar
    Join Date
    Mar 2005
    Location
    Tampa, FL USA
    Posts
    88

    Re: Adding multiple icons to desktop with PDW?

    Quote Originally Posted by randem
    Xman51,

    Are you actually reading what I write????? I stated you will need to do that manually and I gave you examples, told you what and where to do it.
    Yes...here is the script that I created based on your suggestions and examples.:

    Code:
    [Setup]
    AppName=BiskSuite
    AppVerName=BiskSuite 1.0.0
    AppPublisher=Bisk Education
    AppSupportURL=C:\Program Files\BiskSuite\BiskSage\Welcome.html
    AppVersion=1.0.0
    VersionInfoVersion=1.0.0
    AllowNoIcons=yes
    InfoAfterFile=I:\WP\Visual Basic Backup\BiskSuite 1.0\Construction\INO Builder\README.txt
    DefaultGroupName=BiskSuite 1.0
    DefaultDirName=BiskSuite
    AppCopyright=2005 Bisk Education. All rights reserved
    PrivilegesRequired=Admin
    MinVersion=4.0,4.0
    OutputBaseFilename=BiskSuite100
    
    [Tasks]
    Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional Icons:
    
    [Files]
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags:  sharedfile
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags:  sharedfile
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags:  sharedfile
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags:  sharedfile
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags:  regtypelib
    Source: c:\program files\randem systems\**********\********** 4.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags:  sharedfile
    Source: i:\wp\visual basic backup\bisksuite 1.0\construction\bisksuite.exe; DestDir: {app}; Flags:  ignoreversion
    Source: I:\WP\Visual Basic Backup\BiskSuite 1.0\Release\BiskSuite 1.0\*.*; DestDir: {app}\BiskSuite 1.0; Flags: ignoreversion
    
    [INI]
    Filename: {app}\BiskSuite.url; Section: InternetShortcut; Key: URL; String: C:\Program Files\BiskSuite\BiskSage\Welcome.html
    
    [Icons]
    Name: {group}\BiskSuite; Filename: {app}\BiskSuite.exe; WorkingDir: {app}
    Name: {group}\BiskSuite; Filename: {app}\BiskSage.exe; WorkingDir: {app}
    Name: {group}\BiskSuite; Filename: {app}\BiskStatus.exe; WorkingDir: {app}
    Name: {group}\BiskSuite; Filename: {app}\BiskSite.exe; WorkingDir: {app}
    Name: {group}\BiskSuite; Filename: {app}\BiskScribe.exe; WorkingDir: {app}
    Name: {group}\BiskSuite on the Web; Filename: {app}\BiskSuite.url
    Name: {group}\Uninstall BiskSuite; Filename: {uninstallexe}
    Name: {userdesktop}\BiskSuite; Filename: {app}\BiskSuite.exe; Tasks: desktopicon; WorkingDir: {app}
    
    [Run]
    Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist
    Filename: {app}\BiskSuite.exe; Description: Launch BiskSuite; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
    
    [UninstallDelete]
    Type: files; Name: {app}\BiskSuite.url
    Xman51
    Area 51


  16. #16
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Adding multiple icons to desktop with PDW?

    dude

    {group}\BiskSuite

    this means the icon will be created under {group} which by your setup is defaulted to BiskSuite 1.0 with the name of BiskSuite. ALL YOUR ICONS SAY THAT. Which is why you are getting only 1 icon.

    because they all have the same name of BiskSuite 1.0\BiskSuite. I think you were just a little confused by the syntax here. Change the names to the actual names of each app
    Code:
    Name: {group}\BiskSuite;  Filename: {app}\BiskSuite.exe; WorkingDir: {app}
    Name: {group}\BiskSage; Filename: {app}\BiskSage.exe; WorkingDir: {app}
    Name: {group}\BiskStatus;   Filename: {app}\BiskStatus.exe; WorkingDir: {app}
    Name: {group}\BiskSite; Filename: {app}\BiskSite.exe; WorkingDir: {app}
    Name: {group}\BiskScribe; Filename: {app}\BiskScribe.exe; WorkingDir: {app}

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