Link to home
Start Free TrialLog in
Avatar of dba123
dba123

asked on

Create regsvr32 unreg shortcut

I forget how to modify a shortcut to regsvr32 to perform an unregister. I tried editing the properties of my regsvr32 shortuct and add a -u but it doesn't like it.

I want to just drag my dlls on top of my shortcut to register and create a shortuct for unregistering my dlls
Avatar of Dabas
Dabas
Flag of Australia image

Hi dba123:
Create a new text file on your desktop, but give it a .bat extension.
Something like unregister.bat

As its only line type something like C:\Windows\System32\regsvr32 -u %0

If my memory is right from my DOS days, %0 (it might be %1) gets substituted by the file you drag there.


Dabas
ASKER CERTIFIED SOLUTION
Avatar of GivenRandy
GivenRandy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dba123
dba123

ASKER

so:  "C:\Documents and Settings\sss\Desktop\regsvr32.exe" /u-    ? for the target path in the properties of the shortcut?
<aside>
Why are you asking this in the VB.NET area? ;-)
</aside>
dba123:
> so:  "C:\Documents and Settings\sss\Desktop\regsvr32.exe" /u-    ? for the
> target path in the properties of the shortcut?

No. regsvr32.exe is in the system32 folder, not on your desktop, unless you copied it over.
And what I am proposing is not to have a shortcut, but a batch file.

Dabas
Avatar of dba123

ASKER

asking int the VB.NET area because VB is where a lot of dlls are used
Avatar of dba123

ASKER

yea, i copied it over and created a shortcut.  now I just want to add a switch to the shortcut to make it unregister
Avatar of dba123

ASKER

trying the batch file now but I've done this before using a shortcut, just can't get the syntax to work right in the shortcut properties
Avatar of dba123

ASKER

I want to do this with a shortcut...

REGSVR32.EXE -u "d:\ASPSmartUpload\aspSmartUpload.dll"
dba123:
If you insist.
Have you tried C:\Windows\System32\regsvr32.exe /u- as the target of your shortcut?
Can I assume that you are on WinXP?

Dabas