surtcut to notepad to open a file! - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Data-Base
Posts: 1
Joined: Fri Feb 18, 2011 3:55 pm

surtcut to notepad to open a file!

Hello,

I have a file with a strange extension!
I want to open it with notepad without defining the extension to be open with notepad by the system

just a link to notepad makes it open the file!

I did it , but the link does not appear in the start menu program group!


cheers
octavian.vasilovici
Posts: 51
Joined: Tue Jan 25, 2011 2:43 pm

Re: surtcut to notepad to open a file!

Hello and welcome to Advanced Installer forums,

You can achieve this by using an external shortcut:
1.From Files and Folders Page select the location where you want to create the shortcut, for example: Desktop.
2. From the context menu select "New Shortcut To -> External file...
3. In the Shortcut Target field write the following:

Code: Select all

[WindowsFolder]system32\notepad.exe
4. In the Arguments field write :

Code: Select all

[APPDIR]Your_File.ext
(It is wise not to use hard-coded paths, but relative paths which will be resolved at run time.)
Once the project is built and the package will be installed, the shortcut will be created on the Desktop. Once used it will open Your_File.ext inside a new notepad instance.

If you have any other questions, please don't hesitate to contact us.

Best Regards,
Octavian
_______________________________________________________________________________________________________________________________________________
Octavian Vasilovici
Advanced Installer Team
http://www.advancedinstaller.com/
Octavian Vasilovici - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”