Jump to content

Recommended Posts

Posted (edited)

I'm importing an entry under HKLM so an app can autorun on bootup.

Here's the regfile I'm importing:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

"App"="\"C:\\Program Files\\Folder\\APP.EXE\" /switch\"C:\\Program Files\\Folder\\data.ini\" /switch /switch /switch"

This is how it shows up:

C:\Program Files\Folder\APP.EXE /iC:\Program Files\Folder\data.ini /switch /switch /switch

Do I need to worry about the quotes?

I'm still ironing out the bugs with the configuration of the application so it's not running...I'm just scratching my head with the whole quotes thing.

Edited by TheReasonIFail

Posted (edited)

@TheReasonIFail

Maybe you can try something like this:

"App"="C:\\Program Files\\Folder\\APP.EXE -switch -f1C:\\Program Files\\Folder\\data.ini"

Put all the switches in the middle instead of at the end.

I don't know for which application it is but I used it in the past for installing PowerDVD via RunOnceEx.

Greetz, DJPro

Edited by DJPro
Posted

If a path statement does not follow the rules of DOS notation, like with spaces in it, then YES you need to put the entire path statement inside of Quotes. Just do it all the time and you won't ever write a line that won't work,,,at least NOT because of that problem.

Good Luck,

B)

Posted

I just tried importing that into my Win2k's registry and it works, quotes around the paths as expected.

Not sure why the quotes are disappearing on yours...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...