Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Unable to write custom action?


2 replies to this topic

amit_bora

amit_bora
  • Full Members
  • 5 posts

Posted 20 June 2008 - 11:06

I am executing following command into command propmt for temperory use.

set EXE_FULL_PATH="C:\Users\Administrator\Documents\Visual Studio 2005\Projects\June_06_Demo\Server_Fri\Server_Fri\bin\x64Debug\
Server_Fri.exe"

REG.EXE ADD HKCR\CLSID\{f681abd0-ffff-ffff-ffff-d0f4eba19891}\LocalServer32 /ve /t REG_SZ /d %EXE_FULL_PATH% /f

regasm %EXE_FULL_PATH% /tlb:"C:\Users\Administrator\Documents\
Visual Studio 2005\Projects\June_06_Demo\
Server_Fri\Server_Fri\bin\x64\Debug\Server_Fri.tlb"


I wants to do it while installing application. I am using Installshield 10.0 for making setup.exe.
Can you please tell me how can I get the .exe and .tlb file registered using custom action?



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 23 June 2008 - 09:13

If you really need to do this using a custom action (which is not recommended - InstallShield can register files etc. without custom action) then you could call cmd.exe and execute your .bat file as a EXE custom action.

amit_bora

amit_bora
  • Full Members
  • 5 posts

Posted 03 July 2008 - 12:18

QUOTE (Stefan Krueger @ 2008-06-23 09:13)
If you really need to do this using a custom action (which is not recommended - InstallShield can register files etc. without custom action) then you could call cmd.exe and execute your .bat file as a EXE custom action.

Thanks Stefan.
I done this using the same way.