VMware Horizon Community
GDWilt
Contributor
Contributor

File association not passing file to thinapp package

I am new to thinapp so maybe I'm missing something simple.  I have built a thinapp package for Crystal Reports and copied it over to Win7 pc and run 

Thinreg.exe /a /q /r "C:\Program Files (x86)\Thinapp\CrystalReports10\Crystal Reports 10.exe" to register. 
When I double click on a .rpt file it opens crystal inside the thinapp package but does not open the file itself.  However if Crystal is installed locally and I run the Thinreg it then opens the file inside the package just as it should but uninstalling the local version of Crystal goes back to the state of opening the app but not the file inside the thinapp package.
Not sure what info you would need to determine what I might be missing but VMware thinapp ver 4.7, Win7 enterprise 64 bit, Crystal Reports 10. packaged from a Win7 64bit OS machine, running on same.
Any more info I'm happy to provide but any ideas would be greatly appreciated.
19 Replies
Lakshman
Champion
Champion

Just like to understand the reason for packaging on 64 bit OS. Is it 32 bit or 64 bit application?

Have you tried installing the MSI as an alternative to Thinreg?

Reply
0 Kudos
GDWilt
Contributor
Contributor

the app is 32 bit.  No particular reason for choosing 64bit over 32bit OS for running the build on other than that was the pc I remembered the name of first.

I have not tried the MSI mainly because I barely understand the exe version.  I can do some reading and see about creating an MSI.  Can you tell me your reasons for suggesting that way of doing it?

Reply
0 Kudos
Lakshman
Champion
Champion

ThinApp does not suppprt 64 bit apppications. As your app is 32 bit, it is suggested to package on 32 bit OS.

Installing the MSI would automatically register the ThinApp (ThinReg) for you than manually registering it. Suggested this way to confirm the behavior you reported.

Reply
0 Kudos
GDWilt
Contributor
Contributor

you are correct.  As we have had to package apps on a 64bit OS for different reasons we haven't run into any problems so I wasn't worried about it.

However, I did create the msi on both XP 32bit and Win7 64bit to test your suggestion and the same result occured with the MSI.  double clicking the .rpt file opens Crystal inside the thinapp package but does not open the file itself.  This happens with both the 32bit and 64bit OS version of the package.

Reply
0 Kudos
Lakshman
Champion
Champion

Can you check the package.ini that it contains .rpt in the Filetypes=?

Reply
0 Kudos
GDWilt
Contributor
Contributor

Yes it does:

[Crystal Reports 10.exe]
Source=%ProgramFilesDir%\Crystal Decisions\Crystal Reports 10\crw32.exe
Shortcut=Crystal Reports 10 TMC.dat
FileTypes=.rpt
Comment=Creates and modifies formatted data reports (.RPT)
Shortcuts=%Programs%;%Programs%\Crystal Reports 10 Tools

Reply
0 Kudos
Lakshman
Champion
Champion

What happens when you launch Crystal Report ThinApp and open .rpt file from File -> Open menu?

Reply
0 Kudos
GDWilt
Contributor
Contributor

Lakshman, when I do that the file opens just fine.  Also to go one step further if I run "c:\program files (x86)\thinapp\Crystal 10.exe" <path to .rpt file> the file opens just fine inside the thinapp package.  the only time it does not is if I double click on the file itself.

Reply
0 Kudos
Lakshman
Champion
Champion

Interesting. Would you mind giving a try with the latest version of ThinApp (4.7.2) and check if the issue still exists please?

Reply
0 Kudos
GDWilt
Contributor
Contributor

using version 4.7.2 instead of 4.7.1 did not fix the issue.

Reply
0 Kudos
Lakshman
Champion
Champion

When you register the ThinApp (Thinreg or MSI) do you see the .rpt file icon gets changed to that of crystal reports?

Reply
0 Kudos
GDWilt
Contributor
Contributor

Yes sir.  Windows recognizes the registration/association change and updates the .rpt file icons appropriately.

Reply
0 Kudos
Lakshman
Champion
Champion

Im running out of suggestions for this issue. Request you to file Support Request with VMware please.

Reply
0 Kudos
hermdog
Contributor
Contributor

HI GDWilt,

I am also experiencing the same issue. Have you found a solution?

Reply
0 Kudos
GDWilt
Contributor
Contributor

I am currently out of the office until Thursday Jan 5 2012. If you have an emergency Please call the service desk at 952-9376752.

Reply
0 Kudos
GDWilt
Contributor
Contributor

hermdog, I have not found a solution. I opened a ticket with VMware and these are the suggestions they gave me which have not worked for me as yet. I have a conf call with them later this week and will let you know what we find out.

"Can you add the following parameter to the in your package.ini file and rebuild with the build.bat file?

VirtualizeExternalOutOfProcessCOM=0 "

Reply
0 Kudos
hermdog
Contributor
Contributor

Ok, I'd greatly appreciate to hear what you find out. I have 4 different versions of Crystal Reports all exhibiting the same issue. Thanks for your reply.

Hermdog

Reply
0 Kudos
itssbs
Contributor
Contributor

Hermdog,

                If you are still looking for a solution it looks like tech support came up with one(I won’t comment on how long it took).  This is what I received and it seems to do the trick:

Engineering have provided a workaround and have marked the code fix to be targeted for a future release of ThinApp.

There's also a chance that with this workaround implemented that if there is already an instance of Crystal Reports running when a user clicks on a RPT file, a new instance will be launched.

At the moment, that may be the only option until they implement the proper correction to the code.

In the meantime, please remove the following entries from the HKEY_LOCAL_MACHINE.txt file in the project root folder and rebuild using build.bat

isolation_full HKEY_LOCAL_MACHINE\Software\Classes\CrystalReports\shell\Open

isolation_full HKEY_LOCAL_MACHINE\Software\Classes\CrystalReports\shell\Open\command

  Value=

  REG_SZ~"C:\Crystal Decisions\Crystal Reports 10\crw32.exe" /dde#2300

  Value=command

  REG_MULTI_SZ~t3Ld[,j(P@l9nid7vA_scrw>&q3(1Y+kI=KR&zwdsZ72 /dde#2300#2300

isolation_full HKEY_LOCAL_MACHINE\Software\Classes\CrystalReports\shell\Open\ddeexec

  Value=

  REG_SZ~[open("#23251")]#2300

Hope this helps.

helicine
Contributor
Contributor

This worked perfectly for me. Thank you!

Reply
0 Kudos