Opening a readme text file
Posted 01 May 2001 - 20:52
Posted 01 May 2001 - 23:05
Posted 20 May 2001 - 21:04
Pl help..
Posted 21 May 2001 - 14:28
Try to do so:
1. In dialog "SetupCompleteSuccess" select CheckBox "CheckLaunchReadme" and set:
Property LAUNCHREADME
Property is Integer True
If you check this box LAUNCHREADME will be 1, if not 0.
2. Select Behavior of this dialog and select button OK
Event DoAction
Argument [YoursCustomAction]
Condition LAUNCHREADME =1
3. Create [YoursCustomAction] as
Type Launch an executable
Location Stored in Binary Table
Source <SystemFolder>
otepad.exe
Target [YoursReadmeFilePath]
In_script execution Immediate execution
[YoursReadmeFilePath] looks like [INSTALLDIR]Readme.txt.
If you check this CheckBox and click Finish you 'll see your Readme.txt
If you don't check you'll not see this file.
Best regards,
Posted 21 May 2001 - 21:45
i appreciate it...
so it is working for me now and opening the readme file..
Now, there is one thing:
# We want to hide the checkbox and its text ("Show readme file") after Uninstallation.
if you know something about it, pl do let me know..
(you see, i am new at Installshield)
Posted 21 May 2001 - 21:52
Sorry, I don't understand what do you mean "after Uninstallation".
I think after uninstallation your product you don't ever seen this dialog?
Posted 22 May 2001 - 10:43
The ControlCondition table is probably the place to do this with a "Hide" action and a condition involving the "Installed" property.
Posted 22 May 2001 - 18:06
I want to hide the text and checkbox on the last dialog box after uninstallation.
But i could not find any 'ControlCondition table'? There is no topic with that name in Help too.
Also, I went to 'Behavior' of SetupCompleteSuccess and choose the CheckLaunchReadme checkbox and searched for Hide/Disable in its events but there was none..
Infact 'Enable' is a property of this Checkbox which can either be set to True/False (and no conditions can be checked here).
Pl help.
Posted 22 May 2001 - 22:36
Posted 22 May 2001 - 22:55
Thanks a lot to all of you..
This forum makes life easy :)
Posted 14 June 2001 - 04:30
On win98, if i check the 'Show me Readme File' on the last dialog box it gives an error saying "Msi93a1 this program has performed an illegal operation adn will shut down".
I then compiled the project on the OS (win98) and realised the NOTEPAD.EXE is NOT loaded in <system folder> but is in 'C:\Windows' ie windows folder!!!!!
And we are writing <systemfolder>
otepad.exe as 'Source' of cutom action.
what should i do to get around this problem on win98.
i need to have this functionality on all OS (win98, 95, 2000, NT).
i am using IPWI 2.0.
Please help. it is urgent!
Posted 14 June 2001 - 16:27
Posted 14 June 2001 - 17:26
I know the condition should be put for the 'Finish' button of this dialog box by clicking on 'Condition tab' but what should i write to check the OS.
i want to do something like:
Make two custom actions and make the condition of one custom action as:
GetSystemInfo(OS,...) == win2000 OR winNT
and make 'Condition of second custom action as:
GetSystemInfo(OS,...) == win95 OR win98
Posted 14 June 2001 - 22:58
DoAction read_file
LAUNCHREADME And SYSINFO.WINNT.bWinNT
for the OK button. I compiled on win 98 and it gives error " c:\windows\system
otepad.exe" not found!!
(this is coz it is not finding it in system folder while compiling the project. i then copied the notepad.exe in system folder and it compiled but gave errors when i ran the setup!!!.
Please help
Posted 14 June 2001 - 23:20
One action opens a file using notepad.exe found in the windows folder.
Another action opens a file using notepad.exe found in the system folder.
Create a property that defines the OS. Something like OS_IS_NT.
Earlier in the sequence call a custom action that detects the OS and sets the above property appropriately.
Use the property as a condition for the two custom actions mentioned on top.
Posted 15 June 2001 - 09:04
Posted 16 June 2001 - 16:48
used MsiSetproperty ( ) to set the value and
if i compile the project on win98 and then run setup, it works fine and opens the readmefile but if i compile the project on winNT and then run that setup on win98, it gives eror "This program has performed an illegal operation". On winNT it runs fine.
I have made 2 cutom actions and in OK button behavior:-
DoAction readme_win98 LAUNCHREADME AND Not Installed AND OS_IS = "IS_WIN9X"
DoAction readme_winnt LAUNCHREADME AND Not Installed AND OS_IS = "IS_WINNT"
and earlier in the script i am checking the OS using GetSystemInfo(OS,n,s) and setting the value of "OS_IS"
===========
As per your suggestion, Ian, ichecked the registry and strangely: there was no value for this key!!! Are you sure that this key must alays have a value assigned to it , in the registry? is it possible that win98 has not been installed properly on my machine (Infact, the hard disk has been pastitioned and one drive is win98 and other is winNT)?
The key that i am seeing is
HKEY_CLASS_ROOT-->txtfile-->shell-->open--->command
The value of 'Default' is nothing ""
please help
Posted 16 June 2001 - 16:51
used MsiSetproperty ( ) to set the value and
if i compile the project on win98 and then run setup, it works fine and opens the readmefile but if i compile the project on winNT and then run that setup on win98, it gives eror "This program has performed an illegal operation". On winNT it runs fine.
I have made 2 cutom actions and in OK button behavior:-
DoAction readme_win98 LAUNCHREADME AND Not Installed AND OS_IS = "IS_WIN9X"
DoAction readme_winnt LAUNCHREADME AND Not Installed AND OS_IS = "IS_WINNT"
and earlier in the script i am checking the OS using GetSystemInfo(OS,n,s) and setting the value of "OS_IS"
===========
As per your suggestion, Ian, ichecked the registry and strangely: there was no value for this key!!! Are you sure that this key must alays have a value assigned to it , in the registry? is it possible that win98 has not been installed properly on my machine (Infact, the hard disk has been pastitioned and one drive is win98 and other is winNT)?
The key that i am seeing is
HKEY_CLASS_ROOT-->txtfile-->shell-->open--->command
The value of 'Default' is nothing ""
please help
Posted 12 September 2001 - 21:51
Any thoughts?
Posted 12 September 2001 - 22:52
1. Create a custom action to launch your file.
2. Go to the dialog SetupCompleteSuccess to Behaivor and set on the button OK (this is a button Finish) your custom action:
Event DoAction
Argument YourCustomActionName
Condition 1
Good luck!