Page 1 of 1
Saving install path to registry
Posted: 30 Apr 2025, 13:27
by bryan
Is it possible to save the install path of my app to the registry during the install?
If so, how? Explain it like I'm five years old

Re: Saving install path to registry
Posted: 21 Jul 2025, 07:08
by tutosrive
También tengo este problema, ya logré añadirlo al PATH del sistema (Si a eso se refiere con "registry"), pero, elimina todo lo que haya antes de (elimina el PATH y solo queda la ruta de instalacion del programa

)

Re: Saving install path to registry
Posted: 21 Jul 2025, 07:30
by tutosrive
Por cierto, justo solucioné una parte de esto, lo pude agregar al PATH sin ELIMINAR EL PATH anterior, es decir, es un "append" como debería ser, sin embargo, requiere que el usuario escriba "si" cuando salga un mensaje en consola: "El valor ya existe (PATH) desea sobreescribirlo? (escriba si o no)".
Lo logré con este comando de shell:
Code: Select all
reg add "HKCU\Environment" /v Path /t REG_EXPAND_SZ /d "%Path%;<InstallPath>
Si logro hacer que se agregue sin intervencion del usuario, lo menconaré

Re: Saving install path to registry
Posted: 10 Aug 2025, 06:05
by tutosrive
Finalmente encontré el comando:
Solo se añade este comando en la sección de "comandos", ejecutar comando. No requiere nada más!
Code: Select all
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /t REG_SZ /v Path /d "%path%;<InstallPath>" /f
A mí me funciona 100%