Redcar 直接安装选项

发布于 2024-11-15 11:09:30 字数 195 浏览 2 评论 0原文

有没有办法将 redcar 定向安装到用户定义的位置而不是用户主目录?

我在 USB 驱动器上安装了 jruby,E:\jruby-1.6.2。 Redcar 将 gems 安装到 E:\jruby 子目录,然后将用户文件安装到 c: 上的 ~/。

有没有办法将其定向到 e:\fakehome。我想将所有安装文件保留在我的 USB 驱动器上。

Is there a way to direct the install of redcar to a user defined location other than a user home directory?

I have a jruby install on a USB drive, E:\jruby-1.6.2. Redcar installs the gems to the E:\jruby sub directory but then installs the user files to ~/ on c:.

Is there a way to direct it to e:\fakehome. I want to keep all installation files on my USB drive.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撩起发的微风 2024-11-22 11:09:30

我没有特定于 Redcar 的解决方案,但这里有一个可能适合您的通用解决方案。

问题

用户有一个将应用程序数据文件安装到固定位置的应用程序,但用户希望这些文件位于不同的位置(例如可移动驱动器或标准化应用程序数据目录)。

解决方案:

使用连接点或符号链接来模拟预配置目录的存在。

步骤:

  • 安装应用程序,通常
  • 找到您希望重新定位的预配置目录(例如 c:\users\foouser\appdata\fooapp),
  • 在您的备用目录中创建一个具有相同名称的空目录位置(例如,e:\myusbdrive\appdata\fooapp)
  • 如果刚刚安装的应用程序仍在运行,则终止该应用程序
  • 将所有文件移出预配置目录并将它们放入所需目录
  • 删除顶级预配置目录
  • 创建一个交汇点指向您刚刚从备用所需位置删除的顶级预配置目录,
  • 重新启动应用程序并正常使用它,确保它仍然正常运行。

如果一切顺利的话你应该完成了。

这里是连接创建器的链接(适用于旧版本的 Windows (TM))

http:// technet.microsoft.com/en-us/sysinternals/bb896768

HTH

I do not have a Redcar-specific solution, but here is a general solution that may work for you.

PROBLEM:

The user has an application that installs application data files to a fixed location, but the user wants the files in a different location (such as a removable drive or a standardized app data directory).

SOLUTION:

Use a Junction Point or Symlink to simulate the presence of the pre-configured directory.

STEPS:

  • install the application normally
  • locate the pre-configured directory that you wish to have relocated (e.g. c:\users\foouser\appdata\fooapp)
  • create an empty directory with the same name in your alternate desired location (e.g., e:\myusbdrive\appdata\fooapp)
  • terminate the application you just installed if it is still running
  • move all of the files out of the pre-configured directory and put them in the desired directory
  • delete the toplevel pre-configured directory
  • create a junction that points to the toplevel pre-configured directory you just deleted from the alternate desired location
  • restart the application and use it normally, making sure that it still behaves normally.

If all goes well you should be finished.

Here i a link to a junction creator (for older versions of Windows (TM))

http://technet.microsoft.com/en-us/sysinternals/bb896768

HTH

魔法唧唧 2024-11-22 11:09:30

Matthew Scharley 的回应直接回答了如何为 redcar 做到这一点。

目前它是硬编码的。值得庆幸的是,它很容易更改:

https://github.com/ redcar/redcar/blob/master/lib/redcar.rb#L211

This response from Matthew Scharley directly answers how this can be done for redcar.

For the moment it is hard coded. Thankfully it is easy to change:

https://github.com/redcar/redcar/blob/master/lib/redcar.rb#L211

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文