Code Monkey home page Code Monkey logo

Comments (4)

Danyfirex avatar Danyfirex commented on August 10, 2024 1

I think your issue is that you're using Set-FTA which is used to associate an application already registered in the system with a ProgId registered. I your case You need to use Register-FTA to create a custom/default ProgId. So The correct way to go is this:

import-module .\SFTA.ps1
Register-FTA "C:\Program Files\JPEGView64\JPEGView.exe" .gif

from ps-sfta.

JohnTravolski avatar JohnTravolski commented on August 10, 2024 1

I think your issue is that you're using Set-FTA which is used to associate an application already registered in the system with a ProgId registered. I your case You need to use Register-FTA to create a custom/default ProgId. So The correct way to go is this:

import-module .\SFTA.ps1
Register-FTA "C:\Program Files\JPEGView64\JPEGView.exe" .gif

This worked. Thanks!

from ps-sfta.

Danyfirex avatar Danyfirex commented on August 10, 2024

Hello, Can You run with -verbose parameter and show output here?

from ps-sfta.

JohnTravolski avatar JohnTravolski commented on August 10, 2024

Let me know if this helps:

PS C:\Users\John\Downloads\SFTA> import-module .\SFTA.ps1
PS C:\Users\John\Downloads\SFTA> Set-FTA -verbose "C:\Program Files\JPEGView64\JPEGView.exe" .gif
VERBOSE: ProgId: C:\Program Files\JPEGView64\JPEGView.exe
VERBOSE: Extension/Protocol: .gif
VERBOSE: Getting Hash For C:\Program Files\JPEGView64\JPEGView.exe   .gif
VERBOSE: Use Get-UserSid
VERBOSE: baseInfo: .gifs-1-5-21-2530944992-3347900734-157161566-1001c:\program files\jpegview64\jpegview.exe01d938664c2d5800user choice set via windows user experience
 {d18b6dd5-6124-4341-9318-804003bafa0b}
VERBOSE: Hash: p2uj9j0q1Gk=
VERBOSE: Write Reg ApplicationAssociationToasts OK: C:\Program Files\JPEGView64\JPEGView.exe_.gif
VERBOSE: Write Reg ApplicationAssociationToastsList OK: Applications\Illustrator.exegiffile   _.gif
VERBOSE: Write Registry Extension: .gif
VERBOSE: Remove Extension UserChoice Key If Exist: Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.gif\UserChoice
VERBOSE: Write Reg Extension UserChoice OK

from ps-sfta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.