User Tag List

Results 1 to 7 of 7

Thread: Get install directory from registry or ini

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,861
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Question Get install directory from registry or ini

    I tried to get the installation directory from the registry or ini but that doesn't seem to be working.
    Is this feature only for the registared version?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,290
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    No, it works also in the unregistered version.

    Make sure the directory really exists on the disk. If it doesn't exist IC will just take the default directory.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,861
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    For example, I entered the following, but the installer displays the default directory

    HKEY_LOCAL_MACHINE
    Key: SOFTWARE\7-Zip
    Sub key: Path

    also, the installer will not retrieve information from the ini file.

    I'm using the Windows 10 21H1

    icp_get_from_registry.png

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,290
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    Oh, this is a 64-bit key.

    A special feature was added in the build 44 of Install Creator Pro, replace SOFTWARE by SOFTWARE64 to read 64-bit keys.

    Though if you're using the standard unregistered version I think you can't do that... EDIT: hmm, it seems I was wrong, apparently this works also in the standard version.

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,861
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    Could you show me an example for how I can enter the information to make it work correctly (also please show me example for using ini if you can.)?

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,290
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)
    Well, I said it above in your key name replace SOFTWARE by SOFTWARE64 to read 64-bit keys: SOFTWARE64\7-Zip

    Reason:
    - when a 64-bit app reads/writes an HKLM\Software key, Windows reads/writes it from/to HKLM\Software.
    - when a 32-bit app reads/writes an HKLM\Software key, Windows reads/writes it from/to HKLM\Software\Wow6432Node.
    - Install Creator is a 32-bit app, so when it asks Windows to read a key from HKLM\Software, Windows will get it from HKLM\Software\Wow6432Node.
    - we have added a special feature in IC, to make it able to read 64-bit HKLM\Software keys: if you use SOFTWARE64 instead of SOFTWARE, IC will force Windows to read it from HKLM\Software.

    Hopefully it's clear.

    About INI: it's there mostly for compatibility with (very) old applications, you should really use a registry key, INI files are obsolete for such a use, plus I just see the "Update entry" option doesn't support macros (we could change this, but really you should use a registry key).

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,861
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)
    That worked!
    Thanks for the info

Similar Threads

  1. Choosing Installation Directory To Install Application Using Install Creator Pro
    By drnebula in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 25th July 2015, 10:27 AM
  2. Registry value is cleared on install
    By krausyao in forum Install Creator and Patch Maker
    Replies: 1
    Last Post: 18th April 2015, 01:37 PM
  3. Write install directory in the registry
    By Boris in forum Install Creator and Patch Maker
    Replies: 7
    Last Post: 16th May 2012, 07:23 AM
  4. Choosing the Install directory from the Registry
    By tpeck in forum Install Creator and Patch Maker
    Replies: 4
    Last Post: 13th January 2010, 07:07 PM
  5. Getting install path from the registry
    By RavenMorpheus in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 18th April 2008, 04:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •