To redistribute Hide My Folders ActiveX within your applications, you should accomplish the following steps:
copy HMFAx.dll file into your target folder and in that folder execute the following command:
regsvr32 /i:<application_id> HMFAx.dll
Alternatively, you can specify the full path to HMFAx.dll library:
regsvr32 /i:<application_id> “Disk:\full\path\to\HMFAx.dll”
In order to uninstall, execute regsvr32 with “/u” key
regsvr32 /i:<application_id> HMFAx.dll /u
After uninstallation you can safely remove HMFAx.dll file. To complete ActiveX component removal, reboot the system.
Note: “/i” key is used to specify the application ID which will use ActiveX Control methods and properties. We recommend you to supply unique GUID value which can be generated by guidgen.exe.
Now you can call methods and properties of Hide My Folders ActiveX directly from your application.
For Windows Vista:
To be able to work with Hide List, your application has to be run in “Admin Approval Mode” (Run as Administrator).
To make your application automatically try to switch to “Admin Approval Mode” it has to contain a special manifest either inside of its file or in the same directory. The manifest file should have the same name as the target.exe with a .manifest extension.
Please, check the samples that go with Hide My Foldes ActiveX for appropriate manifests. Please, note: embedded manifest has a higher priority than the external one.
Please, find the details on MSDN page.
- Other Hide My Folders ActiveX versions should be uninstalled on your end-users’ machines where your end-product with integrated Hide My Folders ActiveX technology will be installed.
- Make sure that the system is rebooted after your end-product with integrated Hide My Folders ActiveX technology is installed on your end-users’ machines, prior to using Hide My Folders ActiveX methods and properties.