Results 1 to 6 of 6

Thread: [RESOLVED] Inno Setup + Form Designer: Embed .BMP ??How

  1. #1

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Resolved [RESOLVED] Inno Setup + Form Designer: Embed .BMP ??How

    Hello,

    I created a form with the ISFD (Inno Setup Form Designer). Its all ok and implemented, except there is a problem.

    The form has PICTURES, but i cant get them to be EMBEDDED inside the setup, but instead need to be extracted before the setup is run!

    E.g

    Code:
    picDefault.Bitmap.LoadFromFile(ExpandConstant('{src}\Pics\Default.bmp'));
    Is there a way to EMBED the picture inside INNO?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



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

    Re: Inno Setup + Form Designer: Embed .BMP ??How

    What exactly do you mean Embed inside Inno?

    BTW: Show your script...
    Last edited by randem; Jul 4th, 2007 at 05:43 PM.

  3. #3

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Inno Setup + Form Designer: Embed .BMP ??How

    Basically instead of loading the IMAGE from the HD!

    but be able to embed it without extracting the images to the HD, and add it as a resource like in VB. You can add resource files!

    Currenty I have another setup which extracts the images in to the TEMP folder, then it runs the INNO SETUP.

    And to load the images i use.

    Code:
    picDefault.Bitmap.LoadFromFile(ExpandConstant('{src}\Pics\Default.bmp'));
    So basically Im looking for an alternative to .LOADFROMFILE...

    maybe .LoadfromResource ?
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



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

    Re: Inno Setup + Form Designer: Embed .BMP ??How

    Let's see your Installation script. You should be able to include the images in your installation scriot and extract them to a temp folder just when you need them.

  5. #5

    Thread Starter
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Inno Setup + Form Designer: Embed .BMP ??How

    Never mind ..all done... : )

    Basically i made Inno Extract the images to temp, instead of having an External App do it ...
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



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

    Re: [RESOLVED] Inno Setup + Form Designer: Embed .BMP ??How

    Hmmm.... Now where have I heard that before....

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