I am setting up a installer for my application and I need it to run a script in the postflight that prompts the user for data, then it populates a textfile with this information. The script will run fine by itsself (thanks for the help on this) however when I try and run it in the postflight it will either not run and I will get a warning message or it will run but the window that asks you to run it will appear behind the installer.
I was wondering if there is a way to force the script to run and have the script appear ontop of the installer?
Thanks my script is attached bellow:
EDIT: figured out how to force run ith script and make it appear ontop of the installer however I am getting a network permission denied error
I was wondering if there is a way to force the script to run and have the script appear ontop of the installer?
Thanks my script is attached bellow:
Code:
tell application "TextEdit"
activate
display dialog "please enter the instance name:" default answer "XG"
set dialogInfo to result
set selectedButton to button returned of dialogInfo
set INS to text returned of dialogInfo
display dialog "please enter the Server name:" default answer ""
set dialogInfo to result
set selectedButton to button returned of dialogInfo
set SVR to text returned of dialogInfo
display dialog "please enter Port number:" default answer "1521"
set dialogInfo to result
set selectedButton to button returned of dialogInfo
set PRT to text returned of dialogInfo
display dialog "please enter the SID of your database:" default answer "XG"
set dialogInfo to result
set selectedButton to button returned of dialogInfo
set SID to text returned of dialogInfo
display dialog "please enter you mail server:" default answer ""
set dialogInfo to result
set selectedButton to button returned of dialogInfo
set MAILR to text returned of dialogInfo
set s to INS & "_DB=jdbc:oracle:thin:@" & SVR & ":" & PRT & ":" & SID & return & "OS=WIN" & return & "SSCE=/Applications/Mimsy1.4/SSCE/runtime/xgDict.properties" & return & MAILR as text
set theFile to open for access file "Applications:Mimsy XG:pfile.txt" with write permission
write s to theFile
close access theFile
quit application "TextEdit"
end tell
EDIT: figured out how to force run ith script and make it appear ontop of the installer however I am getting a network permission denied error