Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

How to create shortcut manually - Windows #33

Closed
meikboop opened this issue Apr 29, 2021 · 12 comments
Closed

How to create shortcut manually - Windows #33

meikboop opened this issue Apr 29, 2021 · 12 comments
Labels
faq Questions and Discussions

Comments

@meikboop
Copy link

after downloading the ZIP file and extracting i double clicked InstagramHelperChrome.js but it comes up with a windows host script error saying unable to create shortcut, how do i fix this?

@pishangujeniya
Copy link
Owner

@meikboop

There might be some cases where you have installed Chrome Browser at some other places, so for those people who have installed Chrome Browser in some other location, they need to manually specify the path to Chrome.exe file in the below line of InstagramHelperChrome.js file.

  • Open the InstagramHelperChrome.js file in Notepad and modify the following line

Original Code:

var chromeInstalledPath = "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"; // Path to the Chrome.exe file installed in your Windows System.

To Modify Code:

var chromeInstalledPath = "YOUR_PATH_TO_CHROME_EXE_FILE"; // Path to the Chrome.exe file installed in your Windows System.

Note that, the path to Chrome.exe file must be written all single slashes to double slashes as mentioned above in original code.

Some examples of chrome.exe path

  • C:\Program Files (x86)\Google\Application\chrome.exe
  • C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
  • C:\Program Files (x86)\Google\Application\chrome.exe
  • C:\Program Files\Google\Chrome\Application\chrome.exe

Every slashes should be written twice in code.

Once you got your path correct written in the code save the file, and try executing again.

@meikboop
Copy link
Author

meikboop commented May 1, 2021

Hi thank u for replying,
I checked the location of my chrome.exe file but it is the same as the one specified in the original line of code "C:\Program Files\Google\Chrome\Application\chrome.exe";
Is there another reason why i am getting an unable to create shortcut error?

@pishangujeniya
Copy link
Owner

@meikboop Can you please attach the screenshot here?

@pishangujeniya
Copy link
Owner

@meikboop Replace line 40 with this line :

link = Shell.CreateShortcut("D:" + "\\" + shortCutFileName);

and then see the ShortCut in D drive

@meikboop
Copy link
Author

meikboop commented May 1, 2021

thank you i will try this now, sorry i deleted the screenshots because i want to keep myself anonymous

@meikboop
Copy link
Author

meikboop commented May 1, 2021

i replaced line 40 with link = Shell.CreateShortcut("D:" + "\" + shortCutFileName); but the same error occured, i then tried to replace line 44 with link = Shell.CreateShortcut("D:" + "\" + shortCutFileName); instead because in the popup with the error line 44 was mentioned but it said see shortcut in desktop but there was no shortcut. I also checked if i had a D drive but i don't have one.
2021-05-01 (4)
2021-05-01 (3)

@pishangujeniya
Copy link
Owner

Then replace that capital D with C in line 40

@meikboop Replace line 40 with this line :

link = Shell.CreateShortcut("D:" + "\\" + shortCutFileName);

and then see the ShortCut in D drive

Replace D with C

@meikboop
Copy link
Author

meikboop commented May 1, 2021

i have just replaced D with C but it wont work
2021-05-01 (5)

@pishangujeniya
Copy link
Owner

@meikboop Wait 1 hour, I will provide you shortcut file

@meikboop
Copy link
Author

meikboop commented May 1, 2021

thank you so much i appreciate it

@meikboop
Copy link
Author

i cant find the shortcut file

@pishangujeniya
Copy link
Owner

  • Right-Click Desktop

  • New > Shortcut
    image

  • Paste the following path (including the quotes) (Correct if something is wrong with the path to chrome.exe or your System Drive Letter 'C'

"C:\Program Files\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir="C:\InstagramHelperTemp"

  • Click Next
  • Type InstagramHelperChrome
  • Finish.

@pishangujeniya pishangujeniya pinned this issue Mar 26, 2023
@pishangujeniya pishangujeniya added the faq Questions and Discussions label Mar 26, 2023
@pishangujeniya pishangujeniya changed the title Unable to create shortcut How to create shortcut manually - Windows Mar 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
faq Questions and Discussions
Projects
None yet
Development

No branches or pull requests

2 participants