Need to put files in System32 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

wharris
Posts: 3
Joined: Sat Aug 04, 2012 9:58 pm

Need to put files in System32

I have a large application that is written in VB6. This is a 32-bit application that must run on Windows XP, Vista, and Windows 7. It also must run on 32 and 64 bit machines. Currently, I use the the tools included with the Microsoft Development Environment (Microsoft Visual Studio 6 Enterprise) to create the MSI file.

My application requires that a few 3rd party dll's and ocx files be installed in the System32 folder. These files must be in System32 on both the 32 and 64 bit versions of the OS.

I am trying to get the freeware version of Advanced Installer to work. (I will upgrade to the Professional version if I can get it to work.) I currently have AI configured for a 32 bit installation. I can create my package successfully. However, no matter what I try, the 3rd party files mentioned above are always installed in the SysWow64 folder on a 64 bit Win 7 installation. This causes my application to report a "DAX Error - Library Not Registered" error when I try to run the application.

There must be a simple way to copy these files to System32.

Thanks in advance.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Need to put files in System32

Hello and welcome to Advanced Installer forums,

Please keep in mind that a 32-bit installation package cannot place files into "system32" folder on a 64 bit machine because this is a 64-bit location. Only 64-bit installation packages can install files into 64-bit locations. Also, if your application is 32-bit it will install its files into 32-bit locations (i.e in the "SysWow64" folder). Please take a look on our "Packages Types" article.

In order to achieve what you want you can use a "Mixed 32/64-bit Package" type installation, using "System 64" (System64Folder) for your 64-bit resources and "System" (SystemFolder) for your 32-bit resources.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wharris
Posts: 3
Joined: Sat Aug 04, 2012 9:58 pm

Re: Need to put files in System32

Thanks for such a quick response. This is really important to me because we want to start deployment of our new version of the software soon and we want to use the update features Advanced Installer offers.

I have created a project that includes all of the files and resources required by our application. (I am comparing the file list and folder structure to the Microsoft tool.) In the Microsoft Installer development tool, many of the resource files (dll, ocx, etc.) are marked as "vsifrSelfReg". For each of these files in the Advanced Installer project I have done the following...

1. Right-click on the file.
2. Click on Properties.
3. Selected the "Registration" tab.
4. Selected the "Auto register file..." checkbox
5. Selected the "Self register native livrary."

I have also included all of the Merge Module references in the "Merge Modules" section.

I then click on "Build Project". Advanced Installer creates a file named "Termlab.msi" that is 68 MB in size.

I then can successfully run this setup file on the test machine (Win 7 x64).

But, when I try to run the application, I receive the following error...

DAX Error
Library not registered.

The program then closes.

I have confirmed that all of the files in our application are being installed on the test computer. (And, the files are being installed in the correct folders.) I have checked and double-checked the registration options for all files in Advanced Installer.

I would appreciate any insight into this problem. (When I create an MSI file with the Microsoft tool the installer works and the program works correctly.)

Thanks!
wharris
Posts: 3
Joined: Sat Aug 04, 2012 9:58 pm

Re: Need to put files in System32

Daniel.Radu wrote:Hello and welcome to Advanced Installer forums,

Please keep in mind that a 32-bit installation package cannot place files into "system32" folder on a 64 bit machine because this is a 64-bit location. Only 64-bit installation packages can install files into 64-bit locations. Also, if your application is 32-bit it will install its files into 32-bit locations (i.e in the "SysWow64" folder). Please take a look on our "Packages Types" article.

In order to achieve what you want you can use a "Mixed 32/64-bit Package" type installation, using "System 64" (System64Folder) for your 64-bit resources and "System" (SystemFolder) for your 32-bit resources.

All the best,
Daniel
I cannot find the "Mixed Mode" selection.

I click on "Install Parameters".
In the Installation Options section there is a drop-down list that contains the following selections...
"32-bit package"
"64-bit package for x64..."
"64-bit package for Intel64"

Maybe this is my problem.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Need to put files in System32

Hello,

I'm not sure why you are encountering this behavior. Can you please try to implement the solution from my previous post and see if the behavior persists?

In order to use a "Mixed 32/64-bit Package" type installation you need at least a "Professional" edition of Advanced Installer. If you don't have a "Professional" edition of Advanced Installer or your trial period has expired, then you can install Advanced Installer on another machine (even virtual machine) to benefit of the 30 days trial period. Also, if you don't have another machine, then please contact us to support at advancedinstaller dot com and we can give you a trial extension.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”