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

VBScript stored directly in CA help.


1 reply to this topic

Kiril

Kiril
  • Members
  • 39 posts

Posted 19 June 2006 - 19:32

Hello All,
I have Custom Action written in InstallShiled script. We trying to convert all CA from InstallShiled script to C/C++ .dll or VBScript stored directly in the custom action.
I'm having lack of experience with VBScript CA.
Could somebody help me to conver my function to VBScript?

Thanks.

STRING szWinDir, svResult;
NUMBER nvSize, ret;
begin
nvSize = 256;
MsiGetProperty (hMSI,"WindowsFolder", szWinDir, nvSize);

ret = FindFile ( szWinDir, "MyFile.exe", svResult );

if( ret < 0 ) then
LaunchAppAndWait( szWinDir ^ "MyFile.exe", "/Q", WAIT);
endif;
end;

Kiril

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 20 June 2006 - 08:07

All this custom action looks like it does it launch an executable? is that correct?

If so, you might be able to get away with just using
Type 18 - EXE file that is installed with a product
Type 50 - EXE file having a path specified by a property value.
Type 34 - EXE file having a path referencing a directory