igorm Posted December 14, 2007 Posted December 14, 2007 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 Office 2000/XP/2003/2007 Slipstreamer
DW1 Posted December 14, 2007 Posted December 14, 2007 Try adding this to your script: FileChangeDir ( "NEW WORKING DIR" ) It will ensure that your script is in the right 'working directory' AutoIt3 Online Help
igorm Posted December 14, 2007 Author Posted December 14, 2007 (edited) 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 December 14, 2007 by igorm Office 2000/XP/2003/2007 Slipstreamer
weaponx Posted December 14, 2007 Posted December 14, 2007 (edited) Maybe: $run = RunWait("regedit.exe /S office2003.reg", @WorkingDir) Edited December 14, 2007 by weaponx
igorm Posted December 14, 2007 Author Posted December 14, 2007 Thank you weaponx for help, but that also did not do the trick and I can't understand why it wont get merged. If anyone have any other idea please post here. Cheers Office 2000/XP/2003/2007 Slipstreamer
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now