Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Registering a .dll using RunOnceEx

Featured Replies

I have a .dll which i am trying to register, it works using GuiRunOnce:

[GuiRunOnce]

Command0="regsvr32 /s %SYSTEMDRIVE%\file.dll"

But i want to use RunOnceEx to install this and other stuff so can the above be done RunOnceEx?

I have tried various ways of putting the above command in RunOnceEx but it will not register.

If it cant be done are there other methods to register the .dll?

Thanks.

You could save the command in a cmd file and execute it from RunOnceEx.

Use this code and it works:

REG ADD %KEY%\001 /V 1 /D "regsvr32 /s file.dll" /f

I must say, that my .dll file is in the system32 folder, but you can try to register it from your location of the .dll.

Edited by HØLLØW

  • Author

Hi, Krose, thanks, i tried it and it worked.

Edited by andys_50

  • Author

Hi, HØLLØW, i was trying something similar, but i had it the wrong way round, the file/location before the command.

As for the location it says to place it in %systemdrive%, i have tried it directly in system 32 and it didnt register (this was from GuiRunOnce - which i know works, from putting the file in %systemdrive%) but it might using what you suggested.

If i have it to copy over to system32, and use the command you gave, does it automatically look in the system32 folder, as the command you gave doesn't specify the file location?

I'll give it a go, thanks.

Edited by andys_50

[...]i have tried it directly in system 32 and it didnt register[...]

Then you used the wrong command syntax; it dosen't matter where the file is placed for registering it...

If i have it to copy over to system32, and use the command you gave, does it automatically look in the system32 folder, as the command you gave doesn't specify the file location?

If the file to register/unregister is in a location defined in your %path% environment variable(google it, if you don't know what that means), then you don't need to add a path to the regsvr32 command(or any others for that matter). By default, then '%windir%\system' and '%windir%\system32' is defined in the %path% environment variable...

  • Author

Thanks for the help, it works perfectly now, from RunOnceEx and with the file in system32.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.