Jump to content

Problems registering DLL using WPI


Recommended Posts

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


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/y
cscript c:\build\scripts\notepad++.vbs //B
regsvr32 /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

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