Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
TheReasonIFail

Registry Question

Recommended Posts

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

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...