file-association

Wix File Association with standard Windows File

巧了我就是萌 提交于 2019-12-10 11:28:05
问题 I'm working on a Wix project. I need to associate a new file extension. In itself, appears simple. The issue is I want to associate a new extension as a type of text file that can be open with standard Windows NotePad.exe. The issue/concern I have is I don't want to copy My XP version of Notepad and have it installed within the end-user's System32 and overwrite their Notepad for XP, Vista, Windows7, etc which should already be there. How should I properly reference this association. FINAL

Register a python script as default for file type

纵然是瞬间 提交于 2019-12-10 11:05:22
问题 I am making an application with python which will need to be associated with a file type. I need a cross platform solution (can be different for different platforms) that includes setting the icon for the file type, having my application open when a file of that type is double-clicked and being able to reference that file when my application is opened. To clarify Lets say that I have an application called FooEdit, that edits .foo files. .foo files have the mime type of text/plain . Here is

In Wix can an advertised shortcut use the icon from a systems file association?

限于喜欢 提交于 2019-12-10 09:58:58
问题 A question is about Wix and setting the icon of an advertised shortcut: If your installer contains a manual, or document in say .pdf format and you want to create a shortcut to the PDF file. Is it possible to use an icon for the shortcut based on the systems file associations? e.g. User has Adobe reader, the shortcut gets adobe pdf icon. User has Foxit/Other reader, the shortcut gets that program icon instead. etc. 回答1: As far as I understand the installer magic, this is not possible. This

How can I programmatically check file that a file association exists before attempting to Process.Start() it?

百般思念 提交于 2019-12-09 16:26:21
问题 My .Net Windows Forms application generates a PDF report, which I want to show to the user. Instead of just assuming the client PC has a PDF viewer installed and blindly throwing the PDF at the Operating System to open, is there a way to check against the list of file associations on the client beforehand, then show a " you need a PDF viewer application installed - here's a couple of suggestions.. " dialog if PDF isn't a registered type? I've found a lot of questions and answers about

Add File associations for IOS in Xcode4

这一生的挚爱 提交于 2019-12-08 14:28:18
问题 How to add a file association for certain extensions in xcode4. In the Xcode4/Target there is a "Document Types" section, i tried adding a few entries but i just don't get how to set this to open my files. edit: Sorry if someone miss understood, what i really want is this: I'm developing an application for iPad, my users needs to upload a config file into the app, (a .conf), i wanna supply two ways to do so, trough iTunes "File Sharing", and Mail, ie, the user mail themselves the config, and

Is it possible to launch a file's default editor from a batch file?

China☆狼群 提交于 2019-12-07 07:49:34
问题 Background: We can use a combination of PATHEXT and the Windows file associations to do the Command Prompt equivalent of right-clicking a file in Explorer and clicking Open , e.g.: C:\code\python> echo print "Hello, StackOverflow!" >hello.py C:\code\python> hello Hello, StackOverflow! Similarly, I could use this to launch Photoshop by typing: C:\art\source> StackOverflowLogo.PDF The Actual Problem: I need the command prompt equivalent of right-clicking the file in Explorer and selecting Edit

Windows: establish file association to batch file

有些话、适合烂在心里 提交于 2019-12-07 06:18:10
问题 I created a custom file extension I would associate to a batch script. I used ASSOC .myext=MY.FILETYPE FTYPE MY.FILETYPE=cmd /c "C:\Path\of\my\batch.bat" %1 %* by now the batch file "C:\Path\of\my\batch.bat" is a simple one-liner echo %1 And roughly works: double clicking a .myext file pops up a cmd shell echoing the file path. But a problem arises when the .myext file is in a path containing spaces: the echoed filepath is truncated to the space. Double quoting the %1 in the FTYPE statement

How to change file association without UAC confirmation?

点点圈 提交于 2019-12-06 13:17:12
问题 When I was working with file association in a .NET application I hadn't had found a way to set it without UAC popping up a confirmation dialog. Today, when I opened uTorrent and looked up for file association, I've found that you can enable (writing to registry) without any confirmation from the UAC. How is that possible? uTorrent is not running as an admin. Edit: Well, I have just discovered with Process Monitor (Sysinternals) that what uTorrent.exe does is to create a few keys ( uTorrent

Eclipse RCP: programmatically associate file type with Editor?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 10:04:52
问题 How programmatically associate file type with Editor? That is what Eclipse-RCP Java code can do what is archived with the following UI interaction: Window -> Preferences General -> Editors -> File Associations Add... > File type: *.json Select *.json file type Add... (Associated editors) > JavaScript Editor Make it default Ralated to Q https://stackoverflow.com/questions/12429221/eclipse-file-associations-determine-which-editor-in-list-of-associated-editors Eclipse: associate an editor with a

Register a python script as default for file type

北城以北 提交于 2019-12-06 06:02:01
I am making an application with python which will need to be associated with a file type. I need a cross platform solution (can be different for different platforms) that includes setting the icon for the file type, having my application open when a file of that type is double-clicked and being able to reference that file when my application is opened. To clarify Lets say that I have an application called FooEdit, that edits .foo files. .foo files have the mime type of text/plain . Here is the process that happens when a user first gets FooEdit: A user obtains the executable for my application