Results 1 to 17 of 17

Thread: Recompile Question about INNO [Resolved]

  1. #1

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Resolved Recompile Question about INNO [Resolved]

    I just re-compiled my script after making a change to the exe.

    I wanted to make sure the new exe got picked up, with the changes.
    I assume that it did, but need to confirm before shipping.

    Also, can I just add another file to the script? I already have a few, and I would use the same format, (put them in the same folder) Can I just add the line to the script and recompile it? If not, I can include it separatel (the manual)
    Last edited by dglienna; Jun 11th, 2005 at 09:10 PM.

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

    Re: Recompile Question about INNO

    dglienna,

    Yes, just add the new line and recompile. If you are using ********** just use the Add Files button to update your project with this new file. If you recompiled your exe, all you need to do is recompile the Inno Setup Script and the new exe will be picked up, if you put it in the same location the script is looking for.

  3. #3

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO

    Thanks. I though that was the case. I had trouble with a different app, but used P&D which worked. I edited the unsafe files list, and really messed things up. Instead of 6 files, I then had 15! I compiled in Unsafe mode with Script, but Inno didn't like it.

    Yesterday, I updated Inno for the first time, and haven't tried it since. That's why I was hesitant to redo it. I know I had trouble with Norton's the first time, and didn't want to have to go through that again.

    Also, downloaded the update to VB yesterday, and didn't know if that would affect things.

  4. #4

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO

    Any comment, randem?

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

    Re: Recompile Question about INNO

    dglienna,

    Why would you want to remove files rom the unsafe file list? They are there for a reason. If you recreated the script in unsafe mode you could just add a parameter to Inno Setup to compile in unsafe mode.

    Otherwise you could have just copied the files marked as unsafe to a different folder and put that folder in the search path area. Inno Setup would not complain about that.

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

    Re: Recompile Question about INNO

    dglienna,

    For future reference (from Inno Setup Help)


    Unsafe Files

    As a convenience to new users who are unfamiliar with which files they should and should not distribute, the Inno Setup compiler will display an error message if one attempts to install certain "unsafe" files using the [Files] section. These files are listed below.
    (Note: It is possible to disable the error message by using a certain flag on the [Files] section entry, but this is NOT recommended.)

    Any DLL file from own Windows System directory
    You should not deploy any DLLs out of your own Windows System directory because most of them are tailored for your own specific version of Windows, and will not work when installed on other versions. Often times a user's system will be rendered unbootable if you install a DLL from a different version of Windows. Another reason why it's a bad idea is that when you install programs on your computer, the DLLs may be replaced with different/incompatible versions, and were you not to notice this and take action, it could also lead to problems on users' systems when you build new installations.

    Instead of deploying the DLLs from your Windows System directory, you should find versions that are specifically deemed "redistributable". Redistributable DLLs typically work on more than one version of Windows. To find redistributable versions of the Visual Basic and Visual C++ run-time DLLs, see the Inno Setup FAQ.
    If you have a DLL residing in the Windows System directory that you are absolutely sure is redistributable, copy it to your script's source directory and deploy it from there instead.

    ADVAPI32.DLL, COMDLG32.DLL, GDI32.DLL, KERNEL32.DLL, RICHED32.DLL, SHELL32.DLL, USER32.DLL
    These are all core components of Windows and must never be deployed with an installation. Users may only get new versions of these DLLs by installing a new version of Windows or a service pack or hotfix for Windows.
    (Special case) COMCAT.DLL, MSVBVM50.DLL, MSVBVM60.DLL, OLEAUT32.DLL, OLEPRO32.DLL, STDOLE2.TLB
    If DestDir is set to a location other than {sys} and the regserver or regtypelib flag is used, then the above files will be considered "unsafe". These files must never be deployed to and registered in a directory other than {sys} because doing so can potentially cause all programs on the system to use them in favor of the files in {sys}. Problems would result if your copies of the files are older than the ones in {sys}. Also, if your copies of the files were removed, other applications would break.

    COMCAT.DLL version 5.0
    Version 5.0 of COMCAT.DLL must not be redistributed because it does not work on Windows 95 or NT 4.0. If you need to install COMCAT.DLL, use version 4.71 instead.
    Reference: http://support.microsoft.com/support.../Q201/3/64.ASP
    COMCTL32.DLL
    Microsoft does not allow separate redistribution of COMCTL32.DLL (and for good reason - the file differs between platforms), so you should never place COMCTL32.DLL in a script's [Files] section. You can however direct your users to download the COMCTL32 update from Microsoft, or distribute the COMCTL32 update along with your program.
    Reference: http://www.microsoft.com/permission/...p-soft.htm#COM
    Reference: http://www.microsoft.com/downloads/d...DisplayLang=en

    CTL3D32.DLL, Windows NT-specific version
    Previously, on the "Installing Visual Basic 5.0 & 6.0 Applications" How-To page there was a version of CTL3D32.DLL included in the zip files. At the time I included it, I was not aware that it only was compatible with Windows NT. Now if you try to install that particular version of CTL3D32.DLL you must use a MinVersion setting that limits it to Windows NT platforms only. (You shouldn't need to install CTL3D32.DLL on Windows 95/98/Me anyway, since all versions have a 3D look already.)

    SHDOCVW.DLL, SHLWAPI.DLL, URLMON.DLL, WININET.DLL
    These are core components of Internet Explorer and are also used by Windows Explorer. Replacing them may prevent Explorer from starting. If your application depends on these DLLs, or a recent version of them, then your users will need to install a recent version of Internet Explorer to get them.

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

    Re: Recompile Question about INNO

    dglienna,

    Flags

    Description:
    This parameter is a set of extra options. Multiple options may be used by separating them by spaces. The following options are supported:

    allowunsafefiles

    Disables the compiler's automatic checking for unsafe files. It is strongly recommended that you DO NOT use this flag, unless you are absolutely sure you know what you're doing.

  8. #8

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO

    I won't bother posting the mess I ended up with after my hack.

    Do you think I have to reinstall Inno Script, or would the update repair it?

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

    Re: Recompile Question about INNO

    dglienna,

    You can just download the unsafe file from the website and put it in the ********** folder. you can re-install also but you should back up the **********.ini file first.

  10. #10

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO

    The site appears to be down now, the file won't transfer. I'll leave it for a few minutes while i'm in another tab, and then try it later. OK. Got it. I was looking at the latest log, and it seems to say that Winsock was removed. This was a simple receipt printer, that did not use winsock, urlmon, or mapi.
    Hope I have better luck next time.

    Unsafe Files removed from script

    advapi32.dll
    odbccp32.dll
    ntdll.dll
    msvcrt.dll
    ole32.dll
    shell32.dll
    shfolder.dll
    wininet.dll
    mpr.dll
    urlmon.dll
    imagehlp.dll
    imm32.dll
    rpcrt4.dll
    crtdll.dll
    mapi32.dll
    wsock32.dll
    Last edited by dglienna; Jun 11th, 2005 at 09:09 PM.

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

    Re: Recompile Question about INNO [Resolved]

    dglienna,

    you need to look at the debug log to find what used the files in question. Send me your vbp file and I will have a look see.

  12. #12

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO [Resolved]

    Here it is. Pretty simple.

    Ok, here it is
    Last edited by dglienna; Jun 12th, 2005 at 02:49 PM.

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

    Re: Recompile Question about INNO [Resolved]

    dglienna,

    I meant zip and upload the vbp file along with the exe for the project.

  14. #14

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO [Resolved]

    Changed it.

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

    Re: Recompile Question about INNO [Resolved]

    dglienna,

    This is whay I get. I don't see any of the problems you had.
    Attached Files Attached Files

  16. #16

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Recompile Question about INNO [Resolved]

    OK. I tried it again, and had a problem with three files. I looked at your iss file, and found them here.

    Source: dbgrid32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: msadodc.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\program files\common files\system\ado\msado25.tlb; DestDir: {sys}; Flags: uninsneveruninstall regtypelib
    Source: richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Where should I place the three ocx files? dbgrid32.ocx, msadodc.ocx, and richtx32.ocx ? I had them loaded individually as files that i added, but they didn't get picked up for some reason. It also picked up msbind.dll from my added files from a previous app that I compiled.

    Should I add a folder for the common vb files?

    I've also not added anything to my system path, which makes for a long wait to create the script. How to rectify that so I don't have problems in the future?

    Thanks.

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

    Re: Recompile Question about INNO [Resolved]

    dglienna,

    You can copy those files to another folder then put the folder name in the Search Path Area. ********** will find them there.

    Each time you use the ********** project it will add to the Search Path Area all the locations it finds files so that it will not take long on each additional 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
  •  



Click Here to Expand Forum to Full Width