tcarman Posted September 12, 2006 Share Posted September 12, 2006 G'day All,I am experiencing a strange issue when installing Notepad++ using WPI. A feature of the Notepad++ install is the shell extention (right-click) to open files in Notepad++ which is done by registering a dll file either using the NSIS packager or manually.I have attempted to do this using a silent install and from a command line and neither work (only the dll registration fails) when executed from WPI.When the program is installed the exact same way but called from a batch file instead of WPI, the shell extension works.Any ideas why this is happening ? Link to comment Share on other sites More sharing options...
tcarman Posted September 12, 2006 Author Share Posted September 12, 2006 Hmm..I think I could have spoken too soon. It appears the dll doesn't want to register at all now.It was working and has since stopped.I'll keep investigating Link to comment Share on other sites More sharing options...
sadicq Posted September 12, 2006 Share Posted September 12, 2006 Are you trying on the same machine you registered it first?Maybe it's already registered on that machine.Tryregsvr32 /u yourfile.dllbefore registering it. Link to comment Share on other sites More sharing options...
tcarman Posted September 13, 2006 Author Share Posted September 13, 2006 OK, so I rebuilt my VM machine again and ran WPI thru GUIRunOnce and again the DLL did not register.I call the following batch file from WPI in order to install Notepad++xcopy c:\build\notepad++\. "%ProgramFiles%\Notepad++\" /e/q/c/ycscript c:\build\scripts\notepad++.vbs //Bregsvr32 /s "%ProgramFiles%\Notepad++\nppshellext.dll"Everything works except the DLL registration.I unregistered the DLL and removed the files then ran the batch file manually and it works fine !?!This has only started happening since I started WPI. I can't for the life of me see why WPI would be the issue but it worked when I called it from another batch file when using GUIRunOnce.Any ideas ? Link to comment Share on other sites More sharing options...
tcarman Posted September 14, 2006 Author Share Posted September 14, 2006 So in another attempt I ran the regsvr32 command in the 'Execute After' in the Options>Tools of WPI.Wouldn't you know it, it works. So can anyone tell me why it doesn't work during the normal processing of WPI ? Link to comment Share on other sites More sharing options...
sadicq Posted September 14, 2006 Share Posted September 14, 2006 One thing I forgot to ask: are putting those commands directly into WPI or are you creating batch file that contains those? Link to comment Share on other sites More sharing options...
Avneet Posted September 14, 2006 Share Posted September 14, 2006 One thing I forgot to ask: are putting those commands directly into WPI or are you creating batch file that contains those?his using a batch file .. thats what he said in his previous post Link to comment Share on other sites More sharing options...
tcarman Posted September 15, 2006 Author Share Posted September 15, 2006 @sadicq I actually tried both ways and neither worked. The only way I have successfully got it to work is by running the regsvr32 line of code in the 'Execute After' section of WPI. Link to comment Share on other sites More sharing options...
tcarman Posted September 18, 2006 Author Share Posted September 18, 2006 I was messing around rearranging my install order and it now appears to be working again. Not exactly sure how I fixed it though. Link to comment Share on other sites More sharing options...
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