0

I have a .NET project (windows forms) created in .net 3.5.

I added Error log code to this project and I deployed it in VS2010 with .NET 4.0 platform.

It successfully builds and creates the installer, but when I install this msi installer it shows the error "error:1001 ->Object reference not set to an instance of an object." and the installation gets rolled back.

If any one knows about this error please help me.

Matt Ellen
  • 9,933
  • 4
  • 61
  • 80
user741685
  • 1
  • 1
  • 1

2 Answers2

4

One of the resons could be that Custom Actions data is missing. Make sure the variables/properties/data you are accessing in the installer's code(ProjectInstaller.cs) file is there in the custom actions data in Install section.

  1. Click SetupProject
  2. on top of solution explorer click Custom Actions
  3. select Install->Primary output from project
  4. Select properties.
  5. check CustomActionData.(the variables used in the installer code file should be there in the property).

Hope this will solve your problem.

gnat
  • 6,199
  • 101
  • 49
  • 71
0

Make sure the installer is actually copying all the dlls and other files to the installation directory.

Andreas Grech
  • 98,643
  • 98
  • 284
  • 354