Archive: Open file with a certain program...?


Open file with a certain program...?
How do i get the installer to make .cfg files allways open with notepad...?

And how with EXperience UI can i make some options on the finish page to do certain things... like Launch the website and launch a file...


Open a file in Notepad:

Exec '"$WINDIR\NOTEPAD.EXE" "$INSTDIR\Make.cfg"'



Lauch a website:

ExecShell "open" "http://www.example.com/"



See 4.9.1.2 and 4.9.1.3 in the manual :rolleyes:

Can't i make it so all .cfg files n there computer are automatically opend with notepad?

Also I want to make an option at the end page, the finish page a radiobox... so they can tick, them like:

View Readme?:[*]
Edit Config?:[*]
Launch Program?: [ ]


Originally posted by XxXGoD
Can't i make it so all .cfg files n there computer are automatically opend with notepad?
You would need to mess around with the user's file associations. That can be done using the Registry functions, but it's not very easy to do. And it requires your installer to run with Admin privileges, if you want to change it system-wide. Also keep in mind that the user might not want your installer to change his file associations, so this "feature" should be optional at least!

Originally posted by XxXGoD Also I want to make an option at the end page, the finish page a radiobox... so they can tick, them like:

View Readme?:[*]
Edit Config?:[*]
Launch Program?: [ ] [/B]
You would need to create a custom page with InstallOptions or nsDialog.

ahh yeah, i understand.

I looked at:
http://nsis.sourceforge.net/Docs/Ins...ns/Readme.html
and
http://nsis.sourceforge.net/Docs/nsDialogs/Readme.html

It just confused me more, and there not for ExperienceUI...


I don't know how "compatible" ExperienceUI is for custom pages :confused:

But you can try like this:

; pages
; ...
; Put ExperienceUI page macros here, but *no* XPUI_PAGE_FINISH
; ...
page custom CreateMyPage LeaveMyPage "My Custom Finish Page"

Function CreateMyPage
; Create custom page with InstallOptions or nsDialog here
FunctionEnd

Function LeaveMyPage
; Check whatever needs to be checked here
FunctionEnd