Results 1 to 13 of 13

Thread: [RESOLVED] How to change the setup Icon ?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] How to change the setup Icon ?

    I have create the installer program using Package and deployment wizard.I would like to change the setup icon to something useful. How to do that?
    Attached Images Attached Images  

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

    Re: How to change the setup Icon ?

    Moved to Application Deployment

  3. #3
    New Member
    Join Date
    Feb 2008
    Posts
    13

    Re: How to change the setup Icon ?

    If you assign an icon to the application, it will show after installation.

    To assign an icon, with your project's main (startup) form active, look for "icon" in the Properties window. Click there and you can browse to whatever icon you choose. That icon will be attached to the executable program.

  4. #4
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How to change the setup Icon ?

    Setup.exe is a canned program used for each package. It just gets copied over to the package directory. You'd have to use some utility that can edit the icon resource of an EXE to substitute another one.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: How to change the setup Icon ?

    What utility to edit this exe icon?

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to change the setup Icon ?

    You do get the source code for the P&D Wiz

    C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1

    Just make a backup copy first then modify it to give you the option to select an icon.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7
    New Member
    Join Date
    Feb 2008
    Posts
    13

    Re: How to change the setup Icon ?

    What utility to edit this exe icon?

    I've been using a program named "Iconedit.exe" for several years. You may still be able to find it with Google.
    FPF

  8. #8
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: How to change the setup Icon ?

    I think he wants to alter the icon already in Setup.exe, which will require a program that can swap or insert icon resources. These won't work on all EXEs due to compression or protection techniques, but I suspect Setup.exe is plain-jane enough.

    If he just (or also) wants to change Setup1.exe RobDog888 has already supplied a good answer.

    I don't know about Iconedit.exe but most icon editors only extract icons and won't replace them. Google "replace exe icon" and you'll find several shareware tools though.


    It wouldn't take much to create a VB6 program to do this. Probably easy enough in VB.Net too. Sound like good utilities for somebody to post.

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to change the setup Icon ?

    If a simple manualy icon change is desired then use Resource Hacker.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: How to change the setup Icon ?

    Quote Originally Posted by RobDog888
    You do get the source code for the P&D Wiz

    C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1

    Just make a backup copy first then modify it to give you the option to select an icon.
    How this icon created?What the resouce of this icon created? It is from this folder the icon it created C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1 ?

  11. #11
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to change the setup Icon ?

    The P&D Wiz project code is the same as a regular vb 6 project.
    change the frmSetup1 forms icon to the one you desire and recompile the exe.
    Attached Images Attached Images  
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  12. #12

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: How to change the setup Icon ?

    Quote Originally Posted by RobDog888
    recompile the exe.
    Thank you so much I got it. Which one I should recompile? my project or SETUP1.VBP project?

    If I already create the Setup using PWD but the icon is not what i want,What should I do?Do I need to recreate the setup again to change the icon to the new one?

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: How to change the setup Icon ?

    Recompile the SETUP1.VBP and then note the build version. Then as long as that is the only thing you have changed it should be no problems. Next recompile your package and the outputted setup1.exe should now have your choosen icon.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

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