Hi All,
I am trying to package an application. When I try to install the legacy installation as an admin the application works fine. When I try to open as an end user, I get this error

Message:Exception has been thrown by the target of an invocation.
Inner Exception : The type initializer for " productname.common.win.icptspread" threw an exception.
Stack trace: at system.runtimetype.createinstanceimp(boolean public only)
at system.activator.createinstance(type type,boolean nonpublic)
at pdtname.common.win.startupform.getschedulesform(type schedules formtype)

Can anyone guide me with this. What does this indicate? what should I look for?

Thanks in advance,
Any help is appreciated.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
It appears that is a .Net error message, although I could not offer a solution as to how to fix it other than to suggest you make sure you have the correct version installed. Are you sure that the application you are packaging is not already an MSI? It could be your EXE is extracting an MSI pre-install.
Answered 10/26/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
thanks for your reply, If it were a .Net error , then this error should pop up when I log In as an admin . But as an admin I am able to use the application successfully. When I log In as an end user, and try to use the app, I get the error.
The Application is not a MSI, and there is no MSI in temp folder too, so I will need to repackage it, before which my exe itself is having this problem.

Thank You!!!
Answered 10/26/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
Do you get this error using the exe? It may be that an Environment variable, reg key, etc, is not being set in your MSI.
Answered 10/26/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
Yes , I get this error with the exe. Any Idea as to why I get this?

Thanks
Answered 10/26/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
If it works as an admin and launches okay, but not as a standard user then it's a fair assumption that this is going to be permissions related.

Try running ProcMon and see what 'access denied' type message you get, see if that helps. Or you could try LUABugLite (Google it), which should tell you where needed access as a standard user.

Dunnpy
Answered 10/27/2011 by: dunnpy
Red Belt

Please log in to comment
0
If you are getting this error when using your msi or the vendor's exe, then its a problem with the app or the way you have your OS configured. I would start with the vendor's web site/forum/support/KB's/etc. To test if its your OS, do a flat OS install in a workgroup and go from there.
Answered 10/27/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
Thanks Dunnpy And Jmaclaurin for your reply.

Dunnpy , I tried the LUABugLite ( good tool ). The access denied starts from uninstall data folder from c:\program files, and continues for all most all the files and reg keys, so basically it is not installing under standard user rights.

Jmaclaurin , if it is problem with the OS, then as an admin I should get the same error, but it works as admin.

Guys, since it is not installing as a standard user, how can I proceed ?
Any help is appreciated

Thanks
Answered 10/27/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
How can I install the app to the users with no admin rights, when the application requires admin rights to install ?

Thanks
Answered 10/27/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
Do you have any deployment tool in your company like Microsoft SCCM, NetInstall or smiliar?
Answered 10/27/2011 by: Teitan
Senior Purple Belt

Please log in to comment
0
It wasn't clear from your original post that you were attempting to install a piece of software as a standard user - of course it's going to fail.

As Teitan says, you need to use a deployment tool with admin credentials to install , whether that's those already mentioned, GPO, or as a last resort PSExec running the installation remotely with the credentials.

I was approaching this as a successfully installation application that wasn't running as a standard user.

Dunnpy
Answered 10/28/2011 by: dunnpy
Red Belt

Please log in to comment
0
We use HPCA for deployment.
Answered 10/31/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
ORIGINAL: shamu99

We use HPCA for deployment.


There is half your problem.....[:'(]
Answered 10/31/2011 by: Dodgyguy
Senior Yellow Belt

Please log in to comment
0
I'm not familiar with HPCA, but it likely has an option to install either using a specified account or the System account. Standard users cannot write to any area other than their own profile and even at that, Win7 monitors that. So no, you cannot install software as a Standard user.
Answered 11/01/2011 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
0
We use HPCA for deployment.
I too am using HPCA (Radia).

Since you have already created the ZSERVICE and PACKAGE, open the ZSERVICE in the CSDB Editor and look for the parameter name called ZSYSACCT. The value for it should be "Y" for yes. If it is "N", that means the install will be a per user install. Setting it to "Y" will make it do a Per Machine install and will use the Local SYSTEM account to do the install.

HPCA is quite the challenge...

Looking back at your posts there is a conflict. It seems like you are trying to do an install as the standard user but then you say that you are installing it as admin but it won't run as standard user (after being installed by admin). So, just where is the problem? Is it when you try to install it as a standard user? Is it when you try to run it as a standard user (after installing it as admin)?
Answered 11/01/2011 by: bearden3
Purple Belt

Please log in to comment
0
Thanks a lot All, to reply .
Bearden, Sorry for not being clear.
When the application is installed by Admin, the installation is successful and launches also succesfully with the admin log in.
Now I log In with limited rights (End User) , if I try to launch the application I get that error above.
I tried the other way, where I tried to install the application logging in with limited rights, then the application does not install at all, Does not create the folders itself.
Hope I was clear.
I will try the ZSYSACCT.
Answered 11/01/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
0
I am trying to do a AIP for the same application above. I am getting an error 2755. server returned unexpected error 1639 attempting to install package.

The app was a legacy setup, I did the capture to create MSI. the MSI installs fine, but when I try to do the AIP I get the error.

Any help is appreciated
Answered 12/02/2011 by: shamu99
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity