Jump to content

Problem when external application launch my application


igorm
 Share

Recommended Posts

Hi,

I have problem as you see in in Topic Title. Here is my script:

If FileExists(@WorkingDir&'\office2003.reg') Then ShellExecuteWait("regedit.exe", "/s office.reg", @WorkingDir)
Exit

This application and office.reg are always in the same folder. Now when I launch my application manually everything works fine, .reg file is merged, but when some external application launch it, keys wont get merged. Can somebody say me why is this happening and how can I fix it?

Thanks in advance for help.

Cheers :)

Link to comment
Share on other sites

Thanks for help, I added this:

FileChangeDir(@WorkingDir)

so script looks like this now:

FileChangeDir(@WorkingDir)
If FileExists(@WorkingDir&'\office2003.reg') Then ShellExecuteWait("regedit.exe", "/s office2003.reg", @WorkingDir)
Exit

But this did not solve problem, it still wont get merged. Any other suggestion? Thanks.

Cheers :)

Edited by igorm
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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