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?
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?
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.
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
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.
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.)?
Well, I said it abovein 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).
That worked!
Thanks for the info![]()