# Windows install: What if the user installs on the D:// drive?

**URL:** <https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746>\
**Category:** Cabbage Stew\
**Created:** [31 May 2023 16:23 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746 "2023-05-31T16:23:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [31 May 2023 16:23 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/1 "2023-05-31T16:23:54Z")

</div>

Hi,

My plugin installer is built this way:

- VST is installed in the default VST folder on Windows
- Assets + csd are installed in C://Program Data/…
- Presets are installed in C://Users/Username/Music (I use the reserved channel for that)

A friend wanted to try the VST but moved the VST file in his D:// drive. How can I make sure Cabbage will find the assets/csd files/presets when users move the VST file? The VST crashes on his computer and I’m sure it’s because of that.

Thanks!

Julien

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [31 May 2023 18:12 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/2 "2023-05-31T18:12:28Z")

</div>

Where the VST is installed should not be an issue. Does the user in question have a C:/Program Data folder? FWIW, I don’t use any hard coded paths to `C:/Program Data/..`, I’m just using what Windows says is the common application data folder. But if it’s not there, then yes, there will be an issue. If Windows is installed on a D: drive, then Cabbage will look in `D:/Program Data/..`

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [31 May 2023 18:15 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/3 "2023-05-31T18:15:08Z")

</div>

Ok thanks for the answer. I was afraid Cabbage would look for the files in the D:/ drive instead.

Actually there was a C:/Program Data folder! I have to investigate because it works on my computer but not his.

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [31 May 2023 20:23 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/4 "2023-05-31T20:23:01Z")

</div>

In fact @rorywalsh I think my problem might not come from the paths: a friend tested the plugin on Windows 10 and it works well.

Maybe I’m building on an older version of windows? And on Win11 it is not compatible?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [1 June 2023 08:35 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/5 "2023-06-01T08:35:07Z")

</div>

I haven’t heard of any issues with Windows 11. You’re on Windows 10 right? It’s hardly an arm version of Windows? Perhaps it’s something to do with C++ redistributables? Can you ask the user to install the latest?

> **[Latest supported Visual C++ Redistributable downloads](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)**
>
> This article provides download links for the latest Visual C++ Redistributable packages.

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [3 June 2023 08:24 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/6 "2023-06-03T08:24:35Z")

</div>

Ok thanks Rory, I can try that.

I thought it might be:

- csd files not found (even though they are in the standard folder, and it works on 3 windows computer I also tried)
- csound not compatible?
- more globally, the vst not compatible?

I am on Win10, and asked a friend (Win11) to try it as well and it works on his computer…  
But I the initial issues comes from the use of the VST3 (he didnt use the VST because it didnt show up in the vst explorer), and my other beta tester tried the VST3 as well.

I will ask him to try with the latest c++ redistributables (if he’s available, i know he’s pretty busy these days)

Thank you Rory!

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [4 June 2023 15:20 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/7 "2023-06-04T15:20:24Z")

</div>

I called him and ran a few more tests:

- He tried the VST3 in Audacity -\> it’s working
- He tried the VST3 in Ableton (the same version as me, the same Windows version as me) -\> it’s not working
- The VST does not show up in his plugin explorer, it shows up in my VST explorer

The crash might be caused by the sample rate or buffer size settings, so I tried to change the Ableton audio settings in his Live Session to reset to default, it didnt change anything.

I am getting crazy, this is so hard to debug…

He sent me his logs, I can only see “info: VST3: Going to create: Nymano AudioShaper” and then Ableton crashes without printing more logs.

---

<div class="post-metadata">

**Author:** ![hdale94](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/hdale94/32/6371_2.png) [@hdale94](https://forum.cabbageaudio.com/u/hdale94)\
**Post date:** [4 June 2023 16:14 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/8 "2023-06-04T16:14:00Z")

</div>

I don’t think I completely understood the issue here, but I have some tips after I encountered some crashes with my plugins.

1. Don’t set any `sr` (sample-rate) manually at the start of `<CsInstruments>`. Csound/Cabbage should take care of setting the sample rate automatically when the plugin is loaded in a host.
2. If you use the reserved channel `"HOST_BPM"`, and you use it in any division calculations, wrap it inside a `divz` to give it a fallback. When loading a Logic Pro project using a Cabbage plugin, there seemed to be a split-second where `"HOST_BPM"` was zero, and it crashed the whole DAW.

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [4 June 2023 17:28 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/9 "2023-06-04T17:28:00Z")

</div>

Thanks for the tips!

I don’t understand the issue as well 😃 I can’t reproduce the bug and it works for other friends as well..

I don’t set sr, here is what I set:

```
<CsInstruments>
ksmps = 64
nchnls = 2
0dbfs = 1

```

I don’t use HOST\_BPM, but when I divide numbers I use divz as well so it should be ok

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [5 June 2023 08:22 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/10 "2023-06-05T08:22:29Z")

</div>

If we can’t reproduce the crash it makes it very hard to know what’s happening. Can you cause a crash by changing the sample rate while the plugin is loaded in Live?

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [5 June 2023 15:09 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/11 "2023-06-05T15:09:04Z")

</div>

I agree withou you Rory, I tried the whole day and I still can’t reproduce it…

To sum up my tests:

- vst3 works in Audacity
- vst3 makes Ableton crashes instantly (I cant change the sr while loaded). Even with the default sr it crashes.
- vst is not recognized

Audio config is pretty standard:

 ![image](https://forum.cabbageaudio.com/uploads/default/original/2X/1/1e67578226aca5451793a1d14751a093c6af0dcf.png)

On other devices, everything works with the same OS and Live version.

I’m running out of ideas

Maybe I messed up the CsOptions tag?

```
<CsOptions>
-n -d -+rtmidi=NULL -M0 -m0d --displays
</CsOptions>

```

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [5 June 2023 17:35 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/12 "2023-06-05T17:35:28Z")

</div>

So it’s just windows 11 that is causing the problem? It works everywhere else? I’ll ask at work, mybe they have a WIndows 11 machine I can test with. I keep getting annoying notificaionts about upgrading, but I am hesitant considering Windows 10 has never caused me any issues.

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [6 June 2023 07:56 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/13 "2023-06-06T07:56:59Z")

</div>

The weird thing is that it works on windows 11/10 for me and for my friends. Just for a single windows 11 machine, I can’t make it work on Ableton Live, even though it works on audacity on this specific machine.

I will send him the most basic example of gain effect made with the tutorial and see if it works, to narrow the issue a bit more

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 June 2023 08:03 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/14 "2023-06-06T08:03:18Z")

</div>

Can you find out exactly what version of Windows they are using? Is it a home version by any chance? Also, can you try adding `opcodeDir(".")` to your form line and exporting again?

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [6 June 2023 09:14 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/15 "2023-06-06T09:14:00Z")

</div>

Microsoft Windows 22H2 (build 22621.1702)

But since the VST is working on his computer in Audacity but not in Ableton Live, I think we can say it’s not linked to the OS? Also, the super weird thing is that the VST dll is not even recognized by Ableton, only the VST3. I can’t reproduce it on my computer, it works well!

> [@rorywalsh](#):
>
> Also, can you try adding `opcodeDir(".")` to your form line and exporting again?

What will it do? I can try it and ask him to try the VST again

EDIT: Ok I got it “This will override the OPCODE6DIR64 directory”

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 June 2023 09:23 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/16 "2023-06-06T09:23:01Z")

</div>

I had a very odd issue with Live on a particular flavour of Windows in the past. The dll loading was going crazy for some reason where Csound and sometimes live, would try to load all manner of dlls on startup, thinking they were all audio plugins. Setting the opcode dir to a folder with no dlls in it seemed to do the trick, but we never got to the core of the problem.

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [6 June 2023 09:25 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/17 "2023-06-06T09:25:03Z")

</div>

Ok then I will try it and cross my fingers 😄

I will keep you updated, thank you very much for your help!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 June 2023 09:26 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/18 "2023-06-06T09:26:55Z")

</div>

The only way to track this down the last time was to remotely debug the plugin with Visual Studio code through a VM image. It was a nightmare to get it set up. I keep my fingers crossed that the opcodeDir() trick works 🤞

---

<div class="post-metadata">

**Author:** ![nymano](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/nymano/32/4711_2.png) [@nymano](https://forum.cabbageaudio.com/u/nymano)\
**Post date:** [6 June 2023 14:06 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/19 "2023-06-06T14:06:57Z")

</div>

It works!!! Thank you so much, I’ve been stuck on this issue for a whole week!!

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [6 June 2023 14:32 UTC](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746/20 "2023-06-06T14:32:53Z")

</div>

Sorry I didn’t think of this sooner. I really didn’t expect this issue to pop up again 🙈

[Next page](https://forum.cabbageaudio.com/t/windows-install-what-if-the-user-installs-on-the-d-drive/3746.md?page=2)
