cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
garypaquette
Active participant

Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution

There seems to be a difference on how the registry handles the paths.

Many entries I see double-quotes at the beginning the the end of path strings - like in the run section as an example.

Then the ones I inserted in the registry with installshield do not (win7 / win10) have the d-quotes.

On Win10 it doesn't seem to be an issue - on Win 7 many customers are complaining that the EXE is not launching.  Possibly because of the spaces in the the paths ?

Anybody know what the proper documented process is?  Double-quotes or not?

Labels (1)
0 Kudos
2 Solutions

Accepted Solutions

Re: Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution

Hi @garypaquette,

Double quotes is required in registry values, as that is the Windows suggested ways.

Windows Service: Also in addition to that read this exploits if service path is not defined in quotes:  https://blogs.msdn.microsoft.com/aaron_margosis/2014/11/14/it-rather-involved-being-on-the-other-sid...

 

Thanks,

garypaquette
Active participant

Re: Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution
Well - I found my own answer :-)
In the Data I placed the double-quotes in front and at the end and InstallShield did the rest correctly:
Data = "[INSTALLDIR]MyApp.exe"
3 Replies

Re: Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution

Hi @garypaquette,

Double quotes is required in registry values, as that is the Windows suggested ways.

Windows Service: Also in addition to that read this exploits if service path is not defined in quotes:  https://blogs.msdn.microsoft.com/aaron_margosis/2014/11/14/it-rather-involved-being-on-the-other-sid...

 

Thanks,

garypaquette
Active participant

Re: Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution

This is very helpful.

Why is installshield then not placing the double quotes within the installer.

In the System Configuration -> Registry I have a key name of (example): 

Name = MyApp
Data = [INSTALLDIR]MyApp.exe

How do I force that to have the double-quotes?   Should the installer not handle that? I have InstallShield Pro 2018R2

 

0 Kudos
garypaquette
Active participant

Re: Windows 7 / Windows 10 Registry Entry for Paths

Jump to solution
Well - I found my own answer :-)
In the Data I placed the double-quotes in front and at the end and InstallShield did the rest correctly:
Data = "[INSTALLDIR]MyApp.exe"