Archive: Files Fail After Packaging


Files Fail After Packaging
I am developing an installer for a .NET 2.0 application and I am having a very peculiar problem. I can run the application using the same set of files I later package into the installer and the application runs fine. After I package it into the installer and install it on a machine I get mysterious problems, including an unloadable DLL error (for a DLL that is up to date and is in the install directory). Is there anything that anyone can think of that might be causing this? Am I even right to think that the problem could be coming from NSIS?

Thanks,
Nik


Does this happen on a different machine or on the same where you can run your app before packaging?

Is the $INSTDIR created correctly and all files copied intact?

Did you try to turn off the compression?


It happens on the machine I build it on and on a different machine.

All files seem to be copied intact and correctly.

I didn't know I could turn off compression.


I suppose the problem persists even if you attempt to run the installed application by clicking on the executable instead of clicking on the created shortcuts.

If it isn't big trouble give it a try without compression, use SetCompress off on top of your script.


I'd guess it's related to the registration of the files. If you're packaging .NET assemblies, you need to register them using gacutil or another method.